| Although it fixes the issue, it does not address the root problem. You fix works because you are locking the entry, but the problem is that after the entry is evicted the database query sees the uncommitted value. I'm going to check this on PostgreSQL because it looks like it is an MVCC H2 bug. |