openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r547073 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
Date Thu, 14 Jun 2007 01:08:26 GMT
Author: ppoddar
Date: Wed Jun 13 18:08:25 2007
New Revision: 547073

URL: http://svn.apache.org/viewvc?view=rev&rev=547073
Log:
Resolve Getter/Setter type inconsistency in Entity IdClass.
Reflects to find setter method in Application Identity class with correct parameter type.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java?view=diff&rev=547073&r1=547072&r2=547073
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/ClassMetaData.java
Wed Jun 13 18:08:25 2007
@@ -1945,7 +1945,7 @@
                     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()));



Mime
View raw message