diff --git a/ebean-core/src/main/java/io/ebeaninternal/server/loadcontext/DLoadContext.java b/ebean-core/src/main/java/io/ebeaninternal/server/loadcontext/DLoadContext.java index 36cb0ee15..6b7f47781 100644 --- a/ebean-core/src/main/java/io/ebeaninternal/server/loadcontext/DLoadContext.java +++ b/ebean-core/src/main/java/io/ebeaninternal/server/loadcontext/DLoadContext.java @@ -234,7 +234,7 @@ public final class DLoadContext implements LoadContext { } } - protected SpiEbeanServer getEbeanServer() { + SpiEbeanServer getEbeanServer() { return ebeanServer; } @@ -242,7 +242,7 @@ public final class DLoadContext implements LoadContext { * Return the parent state which defines the sharedInstance and readOnly status * which needs to be propagated to other beans and collections. */ - protected Boolean isReadOnly() { + Boolean isReadOnly() { return readOnly; } @@ -283,7 +283,7 @@ public final class DLoadContext implements LoadContext { DLoadBeanContext getBeanContextWithInherit(String path, BeanPropertyAssocOne property) { String key = path + ":" + property.targetDescriptor().name(); - return beanMap.computeIfAbsent(key, p -> createBeanContext(property, path, null)); + return beanMap.computeIfAbsent(key, p -> createBeanContext(property, path)); } private void registerSecondaryNode(boolean many, OrmQueryProperties props) { @@ -313,8 +313,8 @@ public final class DLoadContext implements LoadContext { return new DLoadBeanContext(this, p.targetDescriptor(), path, queryProps); } - private DLoadBeanContext createBeanContext(BeanPropertyAssoc property, String path, OrmQueryProperties queryProps) { - return new DLoadBeanContext(this, property.targetDescriptor(), path, queryProps); + private DLoadBeanContext createBeanContext(BeanPropertyAssoc property, String path) { + return new DLoadBeanContext(this, property.targetDescriptor(), path, null); } private BeanProperty getBeanProperty(BeanDescriptor desc, String path) {