Joined: Wed Jan 18, 2006 4:17 pm Posts: 8
|
Hi ...
I found what the problem is. In my case i have two objects with the same data and when I try to save them to the database using the hibernate saveOrUpdate it confuses it and then changes the id of the first object with the id of the second object. This seems to be due to the complex programming logic tht was involved in the implementation. So once I corrected it, it is working fine.
So I would suggest you to check that you are not trying to save the objects with the same data and then retirve there ids. Best thing would be to save one object and get its id then then save the other object and get its id and it should solve it. Let me know how it goes
Thanks
|
|