OPENJPA-828: Switch field value access based on declaredTypeCode rather than typeCode to take care of externalized fields.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@726927 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2008-12-16 01:59:34 +00:00
parent 47eab49812
commit 548ccbcf95
1 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ public class ReflectingPersistenceCapable
public void pcProvideField(int i) {
Object value = getValue(i, o);
switch (meta.getField(i).getTypeCode()) {
switch (meta.getField(i).getDeclaredTypeCode()) {
case JavaTypes.BOOLEAN:
sm.providedBooleanField(this, i, value == null ? false :
((Boolean) value).booleanValue());
@ -137,7 +137,7 @@ public class ReflectingPersistenceCapable
}
public void pcReplaceField(int i) {
switch(meta.getField(i).getTypeCode()) {
switch(meta.getField(i).getDeclaredTypeCode()) {
case JavaTypes.BOOLEAN:
setValue(i, o, Boolean.valueOf(
sm.replaceBooleanField(this, i)));