From 2c18b555c7f51d194efa6035f581a5bd65c950ac Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Fri, 14 Dec 2007 22:35:06 +0000 Subject: [PATCH] Allow JDBCStoreManager to avail configuration different than that of its StoreContext git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@604318 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java index 6afc604e3..dea3800cd 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java @@ -105,8 +105,12 @@ public class JDBCStoreManager } public void setContext(StoreContext ctx) { + setContext(ctx, (JDBCConfiguration) ctx.getConfiguration()); + } + + public void setContext(StoreContext ctx, JDBCConfiguration conf) { _ctx = ctx; - _conf = (JDBCConfiguration) ctx.getConfiguration(); + _conf = conf; _dict = _conf.getDBDictionaryInstance(); _sql = _conf.getSQLFactoryInstance();