From a9a8353b572b2308005cbc461029fe5b3059620c Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Thu, 7 Feb 2008 02:21:24 +0000 Subject: [PATCH] HHH-3084 : DialectFactory detection of Ingres metadata information git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@14317 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- core/src/main/java/org/hibernate/dialect/DialectFactory.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/org/hibernate/dialect/DialectFactory.java b/core/src/main/java/org/hibernate/dialect/DialectFactory.java index 4b93421c49..c0cf17c4b1 100644 --- a/core/src/main/java/org/hibernate/dialect/DialectFactory.java +++ b/core/src/main/java/org/hibernate/dialect/DialectFactory.java @@ -112,12 +112,17 @@ public class DialectFactory { // TODO : this is the stuff it'd be nice to move to a properties file or some other easily user-editable place private static final Map MAPPERS = new HashMap(); static { + // detectors... MAPPERS.put( "HSQL Database Engine", new VersionInsensitiveMapper( "org.hibernate.dialect.HSQLDialect" ) ); MAPPERS.put( "H2", new VersionInsensitiveMapper( "org.hibernate.dialect.H2Dialect" ) ); MAPPERS.put( "MySQL", new VersionInsensitiveMapper( "org.hibernate.dialect.MySQLDialect" ) ); MAPPERS.put( "PostgreSQL", new VersionInsensitiveMapper( "org.hibernate.dialect.PostgreSQLDialect" ) ); MAPPERS.put( "Apache Derby", new VersionInsensitiveMapper( "org.hibernate.dialect.DerbyDialect" ) ); + MAPPERS.put( "Ingres", new VersionInsensitiveMapper( "org.hibernate.dialect.IngresDialect" ) ); + MAPPERS.put( "ingres", new VersionInsensitiveMapper( "org.hibernate.dialect.IngresDialect" ) ); + MAPPERS.put( "INGRES", new VersionInsensitiveMapper( "org.hibernate.dialect.IngresDialect" ) ); + MAPPERS.put( "Microsoft SQL Server Database", new VersionInsensitiveMapper( "org.hibernate.dialect.SQLServerDialect" ) ); MAPPERS.put( "Microsoft SQL Server", new VersionInsensitiveMapper( "org.hibernate.dialect.SQLServerDialect" ) ); MAPPERS.put( "Sybase SQL Server", new VersionInsensitiveMapper( "org.hibernate.dialect.SybaseDialect" ) );