[jbosscache-commits] JBoss Cache SVN: r4545 - core/trunk/src/main/java/org/jboss/cache/loader.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Fri Oct 5 03:39:01 EDT 2007
Author: mircea.markus
Date: 2007-10-05 03:39:01 -0400 (Fri, 05 Oct 2007)
New Revision: 4545
Modified:
core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java
Log:
if the drop table prop is missing, then the cache will not drop the tables on exit
Modified: core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java 2007-10-05 01:58:07 UTC (rev 4544)
+++ core/trunk/src/main/java/org/jboss/cache/loader/AdjListJDBCCacheLoaderConfig.java 2007-10-05 07:39:01 UTC (rev 4545)
@@ -291,7 +291,7 @@
String prop = props.getProperty("cache.jdbc.table.create");
this.createTable = (prop == null || Boolean.valueOf(prop));
prop = props.getProperty("cache.jdbc.table.drop");
- this.dropTable = (prop == null || Boolean.valueOf(prop));
+ this.dropTable = prop == null ? false : Boolean.valueOf(prop);
this.table = props.getProperty("cache.jdbc.table.name", "jbosscache");
String primaryKey = props.getProperty("cache.jdbc.table.primarykey", "jbosscache_pk");
More information about the jbosscache-commits
mailing list