From 13a55113182dd344067db243fd116e8f97e5e795 Mon Sep 17 00:00:00 2001 From: Roland Praml Date: Sat, 3 Nov 2018 04:23:27 +0100 Subject: [PATCH] FIX: disableLazyLoading was not checked correctly (#1528) --- .../io/ebeaninternal/server/deploy/AssocOneHelpRefInherit.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/ebeaninternal/server/deploy/AssocOneHelpRefInherit.java b/src/main/java/io/ebeaninternal/server/deploy/AssocOneHelpRefInherit.java index 0bc418563..c2506237a 100644 --- a/src/main/java/io/ebeaninternal/server/deploy/AssocOneHelpRefInherit.java +++ b/src/main/java/io/ebeaninternal/server/deploy/AssocOneHelpRefInherit.java @@ -54,7 +54,7 @@ class AssocOneHelpRefInherit extends AssocOneHelp { // for inheritance hierarchy create the correct type for this row... boolean disableLazyLoading = ctx.isDisableLazyLoading(); Object ref = desc.contextRef(pc, ctx.isReadOnly(), disableLazyLoading, id); - if (disableLazyLoading) { + if (!disableLazyLoading) { ctx.register(property.name, ((EntityBean) ref)._ebean_getIntercept()); } return ref;