title: Underscores in names of columns in Hibernate + PostgreSql
body: <p>I’ve created a PostgreSql database and configured Hibernate. Now I have problem with naming of columns. </p>
  
  <p>In the table „users” I have a column „role_id”. </p>
  
  <p>After that, I’ve created entity in Java:</p>
  
  <pre><code>    @Basic
      @Column(name = "role_id")
      public long getRoleId() {return roleId;}
      public void setRoleId(long roleId) {this.roleId = roleId; }
  </code></pre>
  
  <p>And then I get error:</p>
  
  <pre><code>ERROR: column "roleid" of relation "users" does not exist
  </code></pre>
  
  <p>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.</p>
  
  <p>Thanks</p>