This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes hibernate creating table automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply locked New topic

hibernate creating table automatically

Kavitha hebbar

Joined: Sep 12, 2012
Posts: 9
I want to create tables automatically through hibernate.for that I've written <property name="">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.
Bill Gorder

Joined: Mar 07, 2010
Posts: 1648

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.

[How To Ask Questions][Read before you PM me]
Bill Gorder

Joined: Mar 07, 2010
Posts: 1648

seems this topic is the same as the one here:

closing this one.
I agree. Here's the link:
subject: hibernate creating table automatically
Similar Threads
Foreig key must have same number of columns as the referenced primary key
In eclipse how to create a folder with a package and package within a package?
pre-selecting values in a select list
many side of one to many not being populated
Struts more html:select