/** * Disable outer join fetching if this loader obtains an * upgrade lock mode */ protected boolean isJoinedFetchEnabled(AssociationType type, FetchMode config, CascadeStyle cascadeStyle) { return lockMode.greaterThan(LockMode.READ) ? false : super.isJoinedFetchEnabled(type, config, cascadeStyle); }