user1281598
user1281598

Reputation: 317

How does one use Hibernate Tools to create tables from POJOs?

I am having some trouble searching for what I want to do. I am told that I can generate database tables using Hibernate that represent POJOs I created in Java. I must be missing something. Thank you for the help on the trivial issue.

Upvotes: 1

Views: 784

Answers (1)

Ramesh Kotha
Ramesh Kotha

Reputation: 8322

Add this property in your configuration file

<property name="hibernate.hbm2ddl.auto">create</property>

Upvotes: 1

Related Questions