&& wasDefaultLockMode() && shouldIgnoreBindAllParameters() && (!hasFetchGroup()) && (getFetchGroupName() == null) && shouldUseDefaultFetchGroup()) { if ((getSelectionKey() != null) || (getSelectionObject() != null)) {// Must be primary key. setIsCustomQueryUsed(true); } else { if (getSelectionCriteria() != null) { setIsCustomQueryUsed(true); setIsCustomQueryUsed(false);