You use the bean property name. If your column is status_id and you have int statusId
in your class, the property name for the criteria is the name of the bean property: statusId
This generates SQL and will figure out your query needs to be status_id
http://docs.jboss.org/hibernate/orm/3.5/javadocs/org/hibernate/criterion/Restrictions.html