title: use column name instead of entity property in JPQL
body: <p>I have <code>JPQL/Hibernate</code> for <code>DA</code> layer.
  I have a table as following:</p>
  
  <pre><code>CREATE TABLE Log_Tbl
  (
  id number,
  name varchar2(30),
  );
  </code></pre>
  
  <p>and I have a entity for above table as following:</p>
  
  <pre><code>@Entity
  @Table(name = "Log_Tbl")
  public class ELog
  {
    @Column(name = "id")
    private long entity_id;
  
    @Column(name = "name") 
    private String entity_name;
  }
  </code></pre>
  
  <p>and map <code>Log</code> entity to <code>Log_Tbl</code> table by <code>jpa</code>;
  I have two <code>JPQL</code> queries as following:</p>
  
  <ul>
  <li><code>select ELog from ELog where entity_name  = 'Job'</code></li>
  <li><code>select ELog from ELog where name  = 'Job'</code></li>
  </ul>
  
  <p>Both queries returned the correct result. My question is:</p>
  
  <p>Why does the second query return the correct result although I used the column name instead of the <code>entity_name</code> property?</p>