mirror of https://github.com/apache/openjpa.git
Changes for JIRA OPENJPA-116 issue.
Added a test to ensure that the EntityManager was still open before executing the getDelegate() code. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@501445 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4bf0444a4
commit
17c6580e4c
|
@ -853,6 +853,7 @@ public class EntityManagerImpl
|
|||
}
|
||||
|
||||
public Object getDelegate() {
|
||||
_broker.assertOpen();
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -1104,5 +1105,5 @@ public class EntityManagerImpl
|
|||
if (!(other instanceof EntityManagerImpl))
|
||||
return false;
|
||||
return _broker.equals(((EntityManagerImpl) other)._broker);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue