#970 - FOR UPDATE queries are not honored when beans are already cached

This commit is contained in:
Rob Bygrave committed 2017-02-21 22:53:14 +13:00
1 parent 3d8db775f7
commit 8bb884374b
2 files changed
+11

No files matched your search

@@ -804,6 +804,7 @@ public class DefaultOrmQuery<T> implements SpiQuery<T> {
@Override
public DefaultOrmQuery<T> setForUpdate(boolean forUpdate) {
this.forUpdate = forUpdate;
this.excludeBeanCache = true;
return this;
}