I’ve created a PostgreSql database and configured Hibernate. Now I have problem with naming of columns.
In the table „users” I have a column „role_id”.
After that, I’ve created entity in Java:
@Basic
@Column(name = "role_id")
public long getRoleId() {return roleId;}
public void setRoleId(long roleId) {this.roleId = roleId; }
And then I get error:
ERROR: column "roleid" of relation "users" does not exist
Why in Error name of column is „roleid”, if I specified that column as „role_id”. In another table, where all column names are without underscores, all works perfect.
Thanks