support for auto-discovery of H2 dialect

Description

For some reason, the H2 database is not included in the dialect factory map, even though there is a Hibernate dialect available for this database.

Please add the following to org.hibernate.dialect.DialectFactory

MAPPERS.put( "H2", new VersionInsensitiveMapper( "org.hibernate.dialect.H2Dialect" ) );

Environment

Hibernate 3
EJB3 JPA

Activity

Show:
Thomas Mueller
July 14, 2007, 9:57 AM

It sounds like it would be easy to fix this problem?
However I am not sure, if there is anything that can be done on the database side please tell me.
Thomas

Steve Ebersole
October 3, 2007, 4:59 AM

As long as the driver always returns "H2" for java.sql.DatabaseMetaData#getDatabaseProductName then we'll be fine.

Steve Ebersole
October 3, 2007, 5:00 AM

3.2/trunk

Dan Allen
October 3, 2007, 5:16 AM

Yeah!

Assignee

Steve Ebersole

Reporter

Dan Allen

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure