OPENJPA-484. Also added 'h2' as an alias for H2Dictionary in the DBDictionary property.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@629627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2008-02-20 21:58:01 +00:00
parent ec7bd83e1a
commit 6bb87e6203
3 changed files with 3 additions and 3 deletions

View File

@ -200,6 +200,7 @@ public class JDBCConfigurationImpl
"derby", "org.apache.openjpa.jdbc.sql.DerbyDictionary", "derby", "org.apache.openjpa.jdbc.sql.DerbyDictionary",
"empress", "org.apache.openjpa.jdbc.sql.EmpressDictionary", "empress", "org.apache.openjpa.jdbc.sql.EmpressDictionary",
"foxpro", "org.apache.openjpa.jdbc.sql.FoxProDictionary", "foxpro", "org.apache.openjpa.jdbc.sql.FoxProDictionary",
"h2", "org.apache.openjpa.jdbc.sql.H2Dictionary",
"hsql", "org.apache.openjpa.jdbc.sql.HSQLDictionary", "hsql", "org.apache.openjpa.jdbc.sql.HSQLDictionary",
"informix", "org.apache.openjpa.jdbc.sql.InformixDictionary", "informix", "org.apache.openjpa.jdbc.sql.InformixDictionary",
"jdatastore", "org.apache.openjpa.jdbc.sql.JDataStoreDictionary", "jdatastore", "org.apache.openjpa.jdbc.sql.JDataStoreDictionary",

View File

@ -216,9 +216,9 @@ public class DBDictionaryFactory {
// test h2 in a special way, because there's a decent chance the string // test h2 in a special way, because there's a decent chance the string
// h2 could appear in the URL of another database // h2 could appear in the URL of another database
if (prod.indexOf("jdbc:h2:") != -1) if (prod.indexOf("jdbc:h2:") != -1)
return H2Dictionary.class.getName(); return dbdictionaryPlugin.unalias("h2");
if (prod.indexOf("h2 database") != -1) if (prod.indexOf("h2 database") != -1)
return H2Dictionary.class.getName(); return dbdictionaryPlugin.unalias("h2");
// test db2 last, because there's a decent chance this string could // test db2 last, because there's a decent chance this string could
// appear in the URL of another database (like if the db is named // appear in the URL of another database (like if the db is named
// "testdb2" or something) // "testdb2" or something)

View File

@ -68,7 +68,6 @@ public class H2Dictionary extends DBDictionary {
rangePosition = RANGE_POST_LOCK; rangePosition = RANGE_POST_LOCK;
supportsDeferredConstraints = false; supportsDeferredConstraints = false;
useGetObjectForBlobs = true;
blobTypeName = "BLOB"; blobTypeName = "BLOB";
doubleTypeName = "DOUBLE"; doubleTypeName = "DOUBLE";