openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r801744 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/MetamodelImpl.java
Date Thu, 06 Aug 2009 17:46:50 GMT
Author: mikedd
Date: Thu Aug  6 17:46:49 2009
New Revision: 801744

URL: http://svn.apache.org/viewvc?rev=801744&view=rev
Log:
MetaModelImpl.populate() should only consider declaredFields (non-superclass).

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/MetamodelImpl.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/MetamodelImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/MetamodelImpl.java?rev=801744&r1=801743&r2=801744&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/MetamodelImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/meta/MetamodelImpl.java
Thu Aug  6 17:46:49 2009
@@ -289,7 +289,7 @@
             mcls.getName(), cls.getName(), anno.value()).getMessage());
         }
         
-    	Field[] mfields = mcls.getFields();
+        Field[] mfields = mcls.getDeclaredFields();
     	for (Field mf : mfields) {
             try {
                 ParameterizedType mfType = getParameterziedType(mf);



Mime
View raw message