title: org.hibernate.QueryException: could not resolve property:
body: <p>I have been trying to solve this one since morning. But i am unable to.</p>
  
  <pre><code>Query query = em.createQuery("Update ABC p set p.sync_status=14 where p.eventhistoryid in (select c.eventhistoryid from  ABC c where c.sync_status=0 and c.receivedtimestamp &gt;=  getTimeStampAfterDeductingHours(24)");
  
  ABC entity class contains the below column:  
  @Column(name="sync_status")
  private short syncStatus = 0;
  </code></pre>
  
  <p>this column is SMALLINT TYPE and NOT NULL.</p>
  
  <p>Getting the below error:</p>
  
  <blockquote>
    <p>org.hibernate.QueryException: could not resolve property: sync_status .</p>
  </blockquote>