File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Error Creating SessionFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Error Creating SessionFactory" Watch "Error Creating SessionFactory" New topic
Author

Error Creating SessionFactory

Santhosh Puttu
Greenhorn

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

-----------------------------------------------------------------------------------------------------------------------
my HibernateSessionFactory.java is:


----------------------------------------------------------------------------------------------------------
my AddUserForm is :

-----------------------------------------------------------------------------------------------------------
my AddUser.hbm.xml is like:

-----------------------------------------------------------------------
Please ,
Help me out
Paul Sturrock
Bartender

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
Greenhorn

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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error Creating SessionFactory
 
Similar Threads
JDBC Driver class not found
Annotations exception
Hibernate Issue
org.hibernate.exception.GenericJDBCException
saving & retreiving image using struts1