mirror of https://github.com/apache/openjpa.git
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:
parent
ec7bd83e1a
commit
6bb87e6203
|
@ -200,6 +200,7 @@ public class JDBCConfigurationImpl
|
|||
"derby", "org.apache.openjpa.jdbc.sql.DerbyDictionary",
|
||||
"empress", "org.apache.openjpa.jdbc.sql.EmpressDictionary",
|
||||
"foxpro", "org.apache.openjpa.jdbc.sql.FoxProDictionary",
|
||||
"h2", "org.apache.openjpa.jdbc.sql.H2Dictionary",
|
||||
"hsql", "org.apache.openjpa.jdbc.sql.HSQLDictionary",
|
||||
"informix", "org.apache.openjpa.jdbc.sql.InformixDictionary",
|
||||
"jdatastore", "org.apache.openjpa.jdbc.sql.JDataStoreDictionary",
|
||||
|
|
|
@ -216,9 +216,9 @@ public class DBDictionaryFactory {
|
|||
// test h2 in a special way, because there's a decent chance the string
|
||||
// h2 could appear in the URL of another database
|
||||
if (prod.indexOf("jdbc:h2:") != -1)
|
||||
return H2Dictionary.class.getName();
|
||||
return dbdictionaryPlugin.unalias("h2");
|
||||
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
|
||||
// appear in the URL of another database (like if the db is named
|
||||
// "testdb2" or something)
|
||||
|
|
|
@ -68,7 +68,6 @@ public class H2Dictionary extends DBDictionary {
|
|||
rangePosition = RANGE_POST_LOCK;
|
||||
supportsDeferredConstraints = false;
|
||||
|
||||
useGetObjectForBlobs = true;
|
||||
blobTypeName = "BLOB";
|
||||
doubleTypeName = "DOUBLE";
|
||||
|
||||
|
|
Loading…
Reference in New Issue