Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
    Bookmark Topic Watch Topic
  • New Topic

hibernate creating table automatically

 
Kavitha hebbar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Report post to moderator
I want to create tables automatically through hibernate.for that I've written <property name="hbm2ddl.auto">create</property> in configuration.xml.When I run it will ask "select Java application" giving many options like SchemaUpdate,Dialect..etc.If I select i get many exceptions.What is mistake in my program?
Please help.
Thanks.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
It sounds like you are running it from eclipse and you have multiple classes with main methods and it is asking you to select one. Perhaps show us a little more code. I can't see why just adding this property would cause this.
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
seems this topic is the same as the one here:

http://www.coderanch.com/t/592792/ORM/databases/hibernate-table-creation

closing this one.
 
    Bookmark Topic Watch Topic
  • New Topic