#2748 - Fix such that .setLoadBeanCache(false) ... sets CacheMode.OFF

This commit is contained in:
Rob Bygrave committed 2022-07-20 07:45:20 +12:00
1 parent a5e3b9e68a
commit 9252e72581
4 files changed
+17 -4

No files matched your search

@@ -1270,7 +1270,7 @@ public class DefaultOrmQuery<T> extends AbstractQuery implements SpiQuery<T> {
@Override
public final Query<T> setLoadBeanCache(boolean loadBeanCache) {
this.useBeanCache = CacheMode.PUT;
this.useBeanCache = loadBeanCache ? CacheMode.PUT : CacheMode.OFF;
return this;
}