• Post Reply Bookmark Topic Watch Topic
  • New Topic

Table Creation

 
Vivek Singh
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Standalone Hibernate to practice basics of it. I want to create databases and tables using schema file how should i proceed.
I am using MySql . I don't want programmatic or Sql way to create tables. I want to create through Ant or maven tool.
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can specify the hibernate.hbm2dll.auto=create in your hibernate.cfg.xml so that Hibernate will create all those tables automatically. Of course, you need to have your hibernate mapping files or annotated entity classes ready.
 
What are you doing? You are supposed to be reading this 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!