From 2013fb55b79f43abade103b3f854e0a9573b1227 Mon Sep 17 00:00:00 2001 From: "A. Abram White" Date: Thu, 4 Jan 2007 00:31:29 +0000 Subject: [PATCH] Allow non-string values in Map passed to Persistence.createEntityManagerFactory for OpenJPA-specific properties. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@492368 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/openjpa/persistence/PersistenceUnitInfoImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java index 5352a18a5..e32b84a8d 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java @@ -292,8 +292,8 @@ public class PersistenceUnitInfoImpl 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); } }