Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.2.1
Name and version of the database you are using:
Informix 9
Problems with Session and transaction handling?
Read this:
http://hibernate.org/42.html
I have this person table set up. This person table has a (0,1) to many relationship with accounts, although there's never more than one account. This is imported through a set into my person class and all is well.
The problem is that when the person does not have an account, then I set up the account and create the collection, hibernate barfs on the SaveOrUpdate (I'm using Spring 2.0.4).
It appears it is saving the contents of the new collection just fine, but then there is another update with the same table with null keys, which prevents it from updating anything and I get a stalestateexception.
Why is hibernate still trying to persist a collection that no longer exists?