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

This commit is contained in:
Rob Bygrave
2017-02-21 22:53:14 +13:00
parent 3d8db775f7
commit 8bb884374b
2 changed files with 11 additions and 0 deletions
@@ -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;
}