mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#595 - Refactor - persistence context root type handling
This commit is contained in:
1 parent
049bf76cc4
commit
cf62ea4c2f
17 files changed
+556
-314
No files matched your search
@@ -239,7 +239,7 @@ public class SqlTreeNodeBean implements SqlTreeNode {
|
||||
localBean = null;
|
||||
} else if (!temporalVersions) {
|
||||
// check the PersistenceContext to see if the bean already exists
|
||||
contextBean = (EntityBean) persistenceContext.putIfAbsent(id, localBean);
|
||||
contextBean = (EntityBean) localDesc.contextPutIfAbsent(persistenceContext, id, localBean);
|
||||
if (contextBean == null) {
|
||||
// bean just added to the persistenceContext
|
||||
contextBean = localBean;
|
||||
|
||||
Reference in new issue
Block a user