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 Error Creating SessionFactory 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
Bookmark "Error Creating SessionFactory" Watch "Error Creating SessionFactory" New topic

Error Creating SessionFactory

Santhosh Puttu

Joined: Jun 08, 2010
Posts: 27
help me,
hi i am a beginner, with hibernate,
i m getting error like:

my is:

my AddUserForm is :

my AddUser.hbm.xml is like:

Please ,
Help me out
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

You have mapped the column "phone" as your identifier and as a property. You can't map the same column twice, unless you make one of the mappings read only.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Santhosh Puttu

Joined: Jun 08, 2010
Posts: 27
Hi paul,
thanks got rid of that first error......
But der are some more.....
I ll try to fix that..........
I agree. Here's the link:
subject: Error Creating SessionFactory
Similar Threads
saving & retreiving image using struts1
Hibernate Issue
JDBC Driver class not found
Annotations exception