Suggested fix

This commit is contained in:
Noemi Szemenyei committed 2022-03-15 10:36:36 +01:00
1 parent 2b21588c90
commit 52ca271a13
1 file changed
+1 -1
@@ -190,7 +190,7 @@ final class DLoadBeanContext extends DLoadBaseContext implements LoadBeanContext
// lazy load property was a Many // lazy load property was a Many
return; return;
} }
if (list.isEmpty()) { if (!list.contains(ebi)) {
// re-add to the batch and lazy load from DB skipping l2 cache // re-add to the batch and lazy load from DB skipping l2 cache
list.add(ebi); list.add(ebi);
} else if (context.hitCache) { } else if (context.hitCache) {