openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r726927 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
Date Tue, 16 Dec 2008 01:59:34 GMT
Author: ppoddar
Date: Mon Dec 15 17:59:34 2008
New Revision: 726927

URL: http://svn.apache.org/viewvc?rev=726927&view=rev
Log:
OPENJPA-828: Switch field value access based on declaredTypeCode rather than typeCode to take
care of externalized fields.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java?rev=726927&r1=726926&r2=726927&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
Mon Dec 15 17:59:34 2008
@@ -89,7 +89,7 @@
 
     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 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)));



Mime
View raw message