diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java index 40b44d1da..4d45d3002 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/FetchConfigurationImpl.java @@ -594,7 +594,7 @@ public class FetchConfigurationImpl || (fmd.isInDefaultFetchGroup() && hasFetchGroupDefault()) || hasField(fmd.getFullName(false)) - || hasField(fmd.getRealName())) + || hasField(fmd.getRealName())) // OPENJPA-704 return true; String[] fgs = fmd.getCustomFetchGroups(); for (int i = 0; i < fgs.length; i++) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java index 6a8c91b90..ec6ea88ab 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java @@ -353,6 +353,7 @@ public class FieldMetaData * The field name, qualified by the defining class. */ public String getRealName() { + // Added to support OPENJPA-704 return getDefiningMetaData().getDescribedType().getName() + "." + _name; }