Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create/re-create database using java class And relevant mapping files  RSS feed

 
Tiger Dipu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello frinds,

I am new to Hibernate. I want to learn how we can create database from Java classes and relevant hbm mapping files.

Any help will be appreciated.


Thank you,
DIPU
 
pascal betz
Ranch Hand
Posts: 547
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this class if you want/need to do it programatically:
schemaexport

there is also a related ant task to automate this.

plus you can check the hibernate.hbm2ddl.auto property for hibernate configuration.


pascal
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!