• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NonUniqueObjectException in Hibernate

 
Aravind Madishetty
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

I'm getting this exception when I'm running my application but the wierd thing is my application works well but when I see the log files I find this error. Please any one out there help me with this.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you are trying to attach an object to your session in which there is already an object of that type with the same id, so while the two objects a.equals(b) but a != b and therefore you get that error.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic