Answer the question
In order to leave comments, you need to log in
How to generate database tables from available models?
There are models configured via annotations.
Interested in whether it is possible to automatically create the corresponding tables in the database from samples from models?
How to do it in Intellij IDEA?
Thank you in advance.
Answer the question
In order to leave comments, you need to log in
Can. It is enough to add to the Hibernate configuration
<property name="hibernate.hbm2ddl.auto">create</property>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question