[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2981) Error message "org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: x.y.Class" misleading/uninformative
Max Rydahl Andersen (JIRA)
noreply at atlassian.com
Fri Nov 30 18:51:56 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29015 ]
Max Rydahl Andersen commented on HHH-2981:
------------------------------------------
your exception improvements are great but if you could attach a stacktrace then it would be very helpfull since the same excepiton might need different handling depending on the call sequence to add the info that you are looking for.
> 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