Can some one explain the purpose of afterOpration() call in the finally block of SessionImpl.list() method. This inturn calls StatefulPersistenceContext and sets the lockMode to NONE for all the entities from that Query. I am using ehcache, is this check still required even for the resultset returned from ehcache. Looks like this is something that got introduced in 3.x as this was not available in 2.x (we were using 2.0 so far and migrated to 3.2 recently). The reason for this question is, some considerable amount of time is spent in this call. Is this something that can be avoided?
Thanks
|