*/
public EntityFetchGroup getEntityFetchGroup(Set<String> attributeNames) {
if(attributeNames == null || attributeNames.isEmpty()) {
return null;
}
EntityFetchGroup entityFetchGroup = this.entityFetchGroups.get(attributeNames);
if(entityFetchGroup == null) {
entityFetchGroup = new EntityFetchGroup(attributeNames);
// EntityFetchGroup that contains all attributes is equivalent to no fetch group
if(entityFetchGroup.equals(this.fullFetchGroup)) {
return null;
}
this.entityFetchGroups.put(entityFetchGroup.getAttributeNames(), entityFetchGroup);
}
return entityFetchGroup;
}