I poked into org.hibernate.loader.Loader.shouldUseFollowOnLocking in Hibernate 4.2.15 / 4.2.16 and found that:
protected boolean shouldUseFollowOnLocking(QueryParameters parameters, Dialect dialect, List<AfterLoadAction> afterLoadActions) {
if ( dialect.useFollowOnLocking() ) {
LOG.usingFollowOnLocking();
.....
Why there is no check over parameters.getRowSelection()? Issue title says "Problem combining locking and paging", but what is there any problem if there is no paging?
I guess the "no paging query with locking" is the case in HHH-9486.
|