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