title: Hibernate Criteria Restriction field naming confusion
body: <p>I'm confused with the criteria Restriction field naming on Hibernate when we apply a condition. I have a database table called "User" and it contains a field called "<strong>status_id</strong>". I have used the eclipse hibernate tools to generate the POJOs and it created the <strong>User</strong> class and the property name is "<strong>statusId</strong>" within the class, which does not have the "_" sign.</p>
  
  <p>Now I want to know in the following code, which name I have to use for the Restriction criteria.</p>
  
  <pre><code>Criteria criteria = session.createCriteria(User.class)
                   .add(Restrictions.eq(&lt;column to check&gt;, new Int(1)));
  </code></pre>
  
  <p>My confusion is whether to use the "<strong>status_id</strong>" or the "<strong>statusId</strong>" in the column to check for the criteria. I searched for the explanation and couldn't find similar problem. Can someone help me out in this issue?</p>