| session.refresh() means load the latest state of entity from db, if current transaction is DIRTY, then the loaded entity is also DIRTY, we should not be influenced the 2LC. Locking the cache entry without checking current transaction status is an option. |