mirror of https://github.com/apache/openjpa.git
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:
parent
47eab49812
commit
548ccbcf95
|
@ -89,7 +89,7 @@ public class ReflectingPersistenceCapable
|
||||||
|
|
||||||
public void pcProvideField(int i) {
|
public void pcProvideField(int i) {
|
||||||
Object value = getValue(i, o);
|
Object value = getValue(i, o);
|
||||||
switch (meta.getField(i).getTypeCode()) {
|
switch (meta.getField(i).getDeclaredTypeCode()) {
|
||||||
case JavaTypes.BOOLEAN:
|
case JavaTypes.BOOLEAN:
|
||||||
sm.providedBooleanField(this, i, value == null ? false :
|
sm.providedBooleanField(this, i, value == null ? false :
|
||||||
((Boolean) value).booleanValue());
|
((Boolean) value).booleanValue());
|
||||||
|
@ -137,7 +137,7 @@ public class ReflectingPersistenceCapable
|
||||||
}
|
}
|
||||||
|
|
||||||
public void pcReplaceField(int i) {
|
public void pcReplaceField(int i) {
|
||||||
switch(meta.getField(i).getTypeCode()) {
|
switch(meta.getField(i).getDeclaredTypeCode()) {
|
||||||
case JavaTypes.BOOLEAN:
|
case JavaTypes.BOOLEAN:
|
||||||
setValue(i, o, Boolean.valueOf(
|
setValue(i, o, Boolean.valueOf(
|
||||||
sm.replaceBooleanField(this, i)));
|
sm.replaceBooleanField(this, i)));
|
||||||
|
|
Loading…
Reference in New Issue