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 4d45d3002..9c02fc568 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,9 @@ public class FetchConfigurationImpl || (fmd.isInDefaultFetchGroup() && hasFetchGroupDefault()) || hasField(fmd.getFullName(false)) - || hasField(fmd.getRealName())) // OPENJPA-704 + || hasField(fmd.getRealName()) // OPENJPA-704 + || (_fromField != null + && hasField(_fromField + "." + fmd.getName()))) return true; String[] fgs = fmd.getCustomFetchGroups(); for (int i = 0; i < fgs.length; i++)