diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java index 97611005e..1ee16d768 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java @@ -724,7 +724,7 @@ public class PCEnhancer { if (_meta != null && _meta.getDescribedType().isInterface()) return _meta; - return _repos.getMetaData(_meta.getDescribedType(), null, false); + return _repos.getMetaData(f.getDeclaringClass(), null, false); } /**