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 4c204229a..97611005e 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(owner, null, false); + return _repos.getMetaData(_meta.getDescribedType(), null, false); } /**