#1401 - FOR UPDATE queries inside a transaction are not honored when beans are already cached (in the persistence context)

This commit is contained in:
rob bygrave committed 2018-06-01 11:33:41 +12:00
1 parent 10ad9ef096
commit e9faef2692
5 files changed
+44 -6

No files matched your search

@@ -1276,8 +1276,8 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
}
@Override
public boolean isBeanCacheReload() {
return CacheMode.PUT == useBeanCache;
public boolean isForceHitDatabase() {
return forUpdate != null || CacheMode.PUT == useBeanCache;
}
@Override