ADD: some suggestions/debug hints

This commit is contained in:
Roland Praml
2021-01-11 11:50:25 +01:00
parent b7feb62ecd
commit a4b8be61e3
2 changed files with 5 additions and 1 deletions
@@ -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) {
@@ -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);
}