[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2981) Error message "org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: x.y.Class" misleading/uninformative
Dobes Vandermeer (JIRA)
noreply at atlassian.com
Fri Nov 30 17:53:56 EST 2007
Error message "org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: x.y.Class" misleading/uninformative
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: HHH-2981
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2981
Project: Hibernate3
Issue Type: Improvement
Affects Versions: 3.2.5
Reporter: Dobes Vandermeer
Recently Hibernate gave me this error; it was uninformative because:
- It doesn't say what object has the reference
- It's not clear what the given class name refers to
- It doesn't say what field in that object was being processed.
It was misleading because:
- The problem was actually caused by passing a non-persistent object as a parameter to a query, not because of references to a non-persistent object
So, this sent me in the wrong direction.
Hope this helps ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list