Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.0
I have open a session. Then I do some work with an object that I have retrieved from the database. I call saveOrUpdate(obj) and this works great. Then I call tx.commit and close the session. If I add a layer into this where I want to create an insert on an object into another table before I do this saveOrUpdate, I get the following:
org.hibernate.HibernateException: identifier of an instance of mine.db.hibernate.objects.PasswordHistory altered from 11 to null. And nothing happens in the db but I see that a rollback occurred in the logs. Higher in the stack trace I see this message:
transaction after completion callback, status:4. Not sure what status 4 might be. What might I be missing here? I want to call saveOrUpdate(pwHistoryObj) but that part is not working and rolls everything back and the other saveOrUpdate(obj) does not happen.
Thanks.