• 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: 17309
11
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
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!