Wednesday, March 09, 2005
hibernate: deleting objects w/unsaved references
Hibernate Gotcha #104312
Error: object references an unsaved transient instance - save the transient instance before flushing
Senario: I was deleting an object that had a reference to an unsaved object. Why would i try to add a new object to an object that's about to be deleted? Improper logic, but, not exactly illegal. Now I null out the reference and it's happy.