mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
ADD: some suggestions/debug hints
This commit is contained in:
@@ -215,7 +215,7 @@ class DefaultBeanLoader {
|
||||
desc.contextPut(pc, id, bean);
|
||||
ebi.setPersistenceContext(pc);
|
||||
}
|
||||
|
||||
// desc.contextPut(pc, id, bean); // this will fix one of the two tests
|
||||
boolean draft = desc.isDraftInstance(bean);
|
||||
|
||||
if (embeddedOwnerIndex == -1) {
|
||||
|
||||
+4
@@ -296,6 +296,10 @@ public final class DefaultPersistenceContext implements PersistenceContext {
|
||||
}
|
||||
|
||||
private void put(Object id, Object b) {
|
||||
Object existing = map.get(id);
|
||||
if (existing != null && existing != b) {
|
||||
System.out.println("DEBUG: Overwriting object");
|
||||
} // else // will fix both tests
|
||||
map.put(id, b);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user