From: Tomas D. (JIRA) <no...@at...> - 2006-05-24 13:53:28
|
Transient object returned from session -------------------------------------- Key: HHH-1778 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1778 Project: Hibernate3 Type: Bug Versions: 3.1.2, 3.1.3 Environment: hibernete 3.1.3, 3.1.2 Reporter: Tomas Drencak I have object1 which have collection of object2 which have association with object3. I add new object2 with transient instance of object3 into object1 collection. Then I save object1. It cascades save to object2. Then I need to reread the object1 state from the database. So I call session.get(Object1.class, object1.getId()); returned object contains newly added object2 in the collection and that object2 has original transient object3, which is not associated with the current session. So I get LazyInitializationException... I think that session have to check if all returned objects are associated with current session. -- 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 |