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
This commit is contained in:
Pinaki Poddar 2007-06-14 01:08:25 +00:00
parent b7aac84262
commit 90d053f4ef
1 changed files with 1 additions and 1 deletions

View File

@ -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()));