Hibernate - moving annotations from property (method) level to field level

Posted by kan on Stack Overflow See other posts from Stack Overflow or by kan
Published on 2009-12-07T18:07:35Z Indexed on 2010/04/12 19:02 UTC
Read the original article Hit count: 341

How do I generate hibernate domain classes from tables with annotations at field level? I used Hibernate Tools project and generated domain classes from the tables in the database. The generated classes have annotations on the getter methods rather than at the field level. Kindly advice a way to generate domain classes that have the fields annotated. Is there any refactoring facility available in eclipse/IDEA etc.. to move the annotations from method level to field level?

Appreciate your help and time.

© Stack Overflow or respective owner

Related posts about hibernate-annotations

Related posts about reverse-engineering