From 90d053f4ef217ae2c3644f9d6258a6d5510260d0 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Thu, 14 Jun 2007 01:08:25 +0000 Subject: [PATCH] Resolve Getter/Setter type inconsistency in Entity IdClass. Reflects to find setter method in Application Identity class with correct parameter type. git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@547073 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/meta/ClassMetaData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java index ada6e9a3a..316dd191e 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java @@ -1945,7 +1945,7 @@ public class ClassMetaData throw new MetaDataException(_loc.get("invalid-id", _type, fmds[i].getName())); m = Reflection.findSetter(oid, fmds[i].getName(), - fmds[i].getDeclaredType(), false); + fmds[i].getObjectIdFieldType(), false); if (m == null || m.getReturnType() != void.class) throw new MetaDataException(_loc.get("invalid-id", _type, fmds[i].getName()));