]
David Archer commented on HHH-3720:
-----------------------------------
This looks like it's a duplicate of HHH-4088 which has been resolved
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: