#2748 - Fix partially loaded bean scenario with .setDisableLazyLoading(true) .setBeanCacheMode(CacheMode.PUT) // force query to hit database

This commit is contained in:
Rob Bygrave committed 2022-07-20 08:16:43 +12:00
1 parent 48404fc85d
commit ac1e1757e8
3 files changed
+46 -2

No files matched your search

@@ -365,7 +365,7 @@ class SqlTreeLoadBean implements SqlTreeLoad {
* context we need to check if it is already contained in the collection.
*/
final boolean isContextBean() {
return localBean == null;
return localBean == null || queryMode == Mode.LAZYLOAD_BEAN;
}
}