openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r492368 - /incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
Date Thu, 04 Jan 2007 00:31:30 GMT
Author: awhite
Date: Wed Jan  3 16:31:29 2007
New Revision: 492368

URL: http://svn.apache.org/viewvc?view=rev&rev=492368
Log:
Allow non-string values in Map passed to Persistence.createEntityManagerFactory
for OpenJPA-specific properties.


Modified:
    incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java

Modified: incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java?view=diff&rev=492368&r1=492367&r2=492368
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
(original)
+++ incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
Wed Jan  3 16:31:29 2007
@@ -292,8 +292,8 @@
                     setNonJtaDataSourceName((String) val);
                 else
                     setNonJtaDataSource((DataSource) val);
-            } else if (key instanceof String && val instanceof String)
-                setProperty((String) key, (String) val);
+            } else
+                _props.put(key, val);
         }
     }
 



Mime
View raw message