/** * INTERNAL: * Union the fetch group of the domain object with the new fetch group. */ public void unionEntityFetchGroupIntoObject(Object source, EntityFetchGroup newEntityFetchGroup, AbstractSession session, boolean shouldClone) { //this order is important as we need to be merging into the target fetchgroup setObjectFetchGroup(source, flatUnionFetchGroups(newEntityFetchGroup, ((FetchGroupTracker)source)._persistence_getFetchGroup(), shouldClone), session); }
/** * INTERNAL: * Union the fetch group of the domain object with the new fetch group. */ public void unionEntityFetchGroupIntoObject(Object source, EntityFetchGroup newEntityFetchGroup, AbstractSession session, boolean shouldClone) { //this order is important as we need to be merging into the target fetchgroup setObjectFetchGroup(source, flatUnionFetchGroups(newEntityFetchGroup, ((FetchGroupTracker)source)._persistence_getFetchGroup(), shouldClone), session); }
EntityFetchGroup union = flatUnionFetchGroups(fetchGroupInObject, fetchGroupInClone, false);// this method is not called for aggregates
EntityFetchGroup union = flatUnionFetchGroups(fetchGroupInObject, fetchGroupInClone, false);// this method is not called for aggregates
if(!existingEntityFetchGroup.getAttributeNames().containsAll(attributesToCopy)) { newEntityFetchGroup = fetchGroupManager.flatUnionFetchGroups(existingEntityFetchGroup, copyGroupEntityFetchGroup, false); shouldAssignNewEntityFetchGroup = true;
if(!existingEntityFetchGroup.getAttributeNames().containsAll(attributesToCopy)) { newEntityFetchGroup = fetchGroupManager.flatUnionFetchGroups(existingEntityFetchGroup, copyGroupEntityFetchGroup, false); shouldAssignNewEntityFetchGroup = true;