This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 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: 1632

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: 1632

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
many side of one to many not being populated
pre-selecting values in a select list
Struts more html:select
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?