C
C
click_f2017-03-27 19:02:14
PostgreSQL
click_f, 2017-03-27 19:02:14

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

1 answer(s)
S
Sergey Gornostaev, 2017-03-27
@click_f

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 question

Ask a Question

731 491 924 answers to any question