[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3720) Method getSession(EntityMode) on child session does not return value provided by root session

Michael Bezoyan (JIRA) noreply at atlassian.com
Mon Jan 19 12:16:38 EST 2009


Method getSession(EntityMode) on child session does not return value provided by root session
---------------------------------------------------------------------------------------------

                 Key: HHH-3720
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3720
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 3.3.1
            Reporter: Michael Bezoyan
            Priority: Critical


Current code at line 251 in class org.hibernate.impl.SessionImpl
	public Session getSession(EntityMode entityMode) {
		if ( this.entityMode == entityMode ) {
			return this;
		}

		if ( rootSession != null ) {
			rootSession.getSession( entityMode );
		}

Should be:
	public Session getSession(EntityMode entityMode) {
		if ( this.entityMode == entityMode ) {
			return this;
		}

		if ( rootSession != null ) {
			return rootSession.getSession( entityMode );
		}



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