• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Creating SessionFactory

 
Santhosh Puttu
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Santhosh Puttu
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi paul,
thanks got rid of that first error......
But der are some more.....
I ll try to fix that..........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic