File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

hibernate creating table automatically

 
Kavitha hebbar
Greenhorn
Posts: 9
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic