#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
2018-06-01 11:33:41 +12:00
parent 10ad9ef096
commit e9faef2692
5 changed files with 44 additions and 6 deletions
@@ -644,9 +644,9 @@ public interface SpiQuery<T> extends Query<T>, TxnProfileEventCodes {
boolean isBeanCachePut();
/**
* Return true if the bean cache is being explicitly loaded via RECACHE mode.
* Return true if we must hit the DB (Cache reload or select for update).
*/
boolean isBeanCacheReload();
boolean isForceHitDatabase();
/**
* Return the cache mode for using the bean cache (Get and Put).