• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!