If I have a table mapped to the following entity:
@Entity
public class Services {
@Id
private Long id;
private String name;
private String host;
private Short port;
private Sring user;
private String password;
}
When I try to add a new entity, I get this error:
Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into public.services (host, name, password, port, user, id) values ('service.host', 'service', 'password', 707, 'user', 9) was aborted: ERROR: syntax error at or near "user"