mirror of https://github.com/apache/openjpa.git
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:
parent
b7aac84262
commit
90d053f4ef
|
@ -1945,7 +1945,7 @@ public class ClassMetaData
|
||||||
throw new MetaDataException(_loc.get("invalid-id",
|
throw new MetaDataException(_loc.get("invalid-id",
|
||||||
_type, fmds[i].getName()));
|
_type, fmds[i].getName()));
|
||||||
m = Reflection.findSetter(oid, 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)
|
if (m == null || m.getReturnType() != void.class)
|
||||||
throw new MetaDataException(_loc.get("invalid-id",
|
throw new MetaDataException(_loc.get("invalid-id",
|
||||||
_type, fmds[i].getName()));
|
_type, fmds[i].getName()));
|
||||||
|
|
Loading…
Reference in New Issue