Author: mriou
Date: Thu May 28 23:37:07 2009
New Revision: 779797
URL: http://svn.apache.org/viewvc?rev=779797&view=rev
Log:
Adding the H2 database to the list of DBs we can autodetect.
Modified:
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
Modified:
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
URL:
http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java?rev=779797&r1=779796&r2=779797&view=diff
==============================================================================
---
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
(original)
+++
ode/trunk/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/BpelDAOConnectionFactoryImpl.java
Thu May 28 23:37:07 2009
@@ -145,12 +145,10 @@
static {
// Hibernate has a nice table that resolves the dialect from the
- // database
- // product name,
- // but doesn't include all the drivers. So this is supplementary, and
- // some
- // day in the
- // future they'll add more drivers and we can get rid of this.
+ // database product name, but doesn't include all the drivers. So
+ // this is supplementary, and some day in the future they'll add
+ // more drivers and we can get rid of this.
+ //
// Drivers already recognized by Hibernate:
// HSQL Database Engine
// DB2/NT
@@ -162,6 +160,8 @@
// Oracle 8 and Oracle >8
HIBERNATE_DIALECTS.put("Apache Derby", new
DialectFactory.VersionInsensitiveMapper(
"org.hibernate.dialect.DerbyDialect"));
+ HIBERNATE_DIALECTS.put("H2", new
DialectFactory.VersionInsensitiveMapper(
+ "org.hibernate.dialect.H2Dialect"));
}
public void shutdown() {