[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1714) Session.get() behavior

Steve Ebersole (JIRA) noreply at atlassian.com
Wed Oct 4 22:24:24 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1714?page=comments#action_24723 ] 

Steve Ebersole commented on HHH-1714:
-------------------------------------

because at the time i was not anticipating another cr release.  Unfortunately I need to do a cr5.

> 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
>     Assignee: 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




More information about the hibernate-issues mailing list