openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hthom...@apache.org
Subject svn commit: r1341510 - /openjpa/branches/1.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
Date Tue, 22 May 2012 15:02:30 GMT
Author: hthomann
Date: Tue May 22 15:02:30 2012
New Revision: 1341510

URL: http://svn.apache.org/viewvc?rev=1341510&view=rev
Log:
OPENJPA-828: Applied Helen Xu's changes where she back ported Pinaki's changes from 2.0.x

Modified:
    openjpa/branches/1.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java

Modified: openjpa/branches/1.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java?rev=1341510&r1=1341509&r2=1341510&view=diff
==============================================================================
--- openjpa/branches/1.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
(original)
+++ openjpa/branches/1.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/enhance/ReflectingPersistenceCapable.java
Tue May 22 15:02:30 2012
@@ -89,7 +89,7 @@ public class ReflectingPersistenceCapabl
 
     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 ReflectingPersistenceCapabl
     }
 
     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