How to generate domain objects with annotations using hibernate tools

后端 未结 1 1868
-上瘾入骨i
-上瘾入骨i 2021-01-04 20:51

I use Eclipse Hibernate Tools to create domain classes starting from my database and need to add JPA annotations.

Is there a way to add annotations? Possibly with re

相关标签:
1条回答
  • 2021-01-04 21:38

    I personally don't use hibernate tools, because I'm pretty happy with Spring Roo. However, google search brought me to this.

    As mostly there is a nice tutorial from mkyong.com. If you go to "Hibernate perspective" and click "Code generation configuration" in the "Export" tab there is a checkbox for "Generate EJB3 annotations".

    http://www.mkyong.com/hibernate/how-to-generate-code-with-hibernate-tools/

    This was further confirmed in previous answers.

    Can Hibernate tool generate JPA POJO?

    0 讨论(0)
提交回复
热议问题