I've got an exception saying: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: {CLASS NAME HERE}
I can see it's telling me that _something_ holds a reference to {CLASS NAME HERE} and that instance needs to be saved, but because the session doesn't flush until quite a while after the work has been done I am having a bit of trouble locating the specific relationship that's not properly handled.
Does anyone have any experience debugging this type of issue? Is there some extra logging I can turn on, some tools I could use, or any helpful way of getting more context, like maybe the object being saved that has the reference to the transient instance? Maybe some ID's?
I tend to find the standard debugger gives me a fairly low signal to noise ratio when climbing through the hibernate proxies and framework at the time of the error.
Oh yeah, probably worth mentioning, that while we use cascades in some places, covering everything with cascade="ALL" is a pretty undesirable option at this stage, finding out where the gap is would be much better
|