• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic