I have a pretty complex database schema and would like to know if there are any tools which I can use to auto-generate the entities if I am using Hibernate as my persistence mechanism.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you’re looking for database “schema generation” (ie automatically create your tables with PKs etc), try
org.hibernate.tool.hbm2ddl.SchemaExport, as I said in this SO question.Use it like this:
(check the link above for more info)
However, if you’re looking for auto-generation of Hibernate mapping files (*.hbm.xml) or annotations, you should look into Hibernate Tools, as stated below.