From: Steve E. (JIRA) <no...@at...> - 2006-05-02 18:53:28
|
Session.get() behavior ---------------------- Key: HHH-1714 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1714 Project: Hibernate3 Type: Bug Components: core Reporter: Steve Ebersole Assigned to: Steve Ebersole Fix For: 3.2.1 The behavior of Session.get() should be as follows: 1) if the entity to get is already associated with the session: a) as a proxy, return the proxy making sure it gets initialized (potentially resulting in a ONFE) b) as a naked entity, return that entity 2) if the entity to get is not already associated with the session, attempt to load it either returning null if not found or the "naked" loaded entity Currently (1.a) is messed up in that the proxy is returned but not forced to initialize -- 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 |