openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r1152902 - /openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java
Date Mon, 01 Aug 2011 19:23:03 GMT
Author: mikedd
Date: Mon Aug  1 19:23:03 2011
New Revision: 1152902

URL: http://svn.apache.org/viewvc?rev=1152902&view=rev
Log:
Revert "OPENJPA-2015 Add to relationship collection only if type matches."

This reverts commit 1cfb8039496ec563cd02f1a73513f98007548f5e.

Modified:
    openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java

Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java?rev=1152902&r1=1152901&r2=1152902&view=diff
==============================================================================
--- openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java
(original)
+++ openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/meta/strats/StoreCollectionFieldStrategy.java
Mon Aug  1 19:23:03 2011
@@ -123,11 +123,7 @@ public abstract class StoreCollectionFie
      * By default, assumes the structure is a collection.
      */
     protected void add(JDBCStore store, Object coll, Object obj) {
-       	Class<?> elemClazz = field.getElement().getDeclaredType();
-       	if( elemClazz == null || obj == null || 
-            elemClazz.isAssignableFrom(obj.getClass())) {
-            ((Collection) coll).add(obj);
-       	}
+        ((Collection) coll).add(obj);
     }
 
     /**



Mime
View raw message