title: How to generate namedQuery by hibernate?
body: <p>I am working in a project where Java entity classes are generated from db scheme by hibernate tool. I would like to have named queries in the generated classes to be able to find entities by one of their non primary-key field. I would like to have namedQueries like this: findUserByName or findUserByHeight. Named queries would be an optimal choice for this purpose besides entitymanger.find() and Criteria API.</p>
  
  <p>My question is how to configure hibernate tool / hbm2java / reverse engineering strategy to generate namedQueries for each column in a db table. I did not find any corresponding information on the internet. I hope this is possible. Using Eclipse JPA 2.0 Persistance manager in NetBeans I was able to generate named queries.</p>