[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2070) Improvement for DialectFactory
Gino A Melone (JIRA)
noreply at atlassian.com
Thu Sep 20 17:36:15 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28146 ]
Gino A Melone commented on HHH-2070:
------------------------------------
According to this IBM tech-note (http://www-1.ibm.com/support/docview.wss?rs=457&context=SSBRLP&dc=DB520&uid=swg21233268&loc=en_US&cs=UTF-8&lang=en), several DB Product names are possible. The below snippet includes all of the ones from the tech-note. The first two are in the source tar-ball for 3.2.5.ga. The second and third are added in the attached patch.
----------------------------------------------- Snippet from DialectFactory.java
MAPPERS.put( "DB2/NT", new VersionInsensitiveMapper( "org.hibernate.dialect.DB2Dialect" ) );
MAPPERS.put( "DB2/LINUX", new VersionInsensitiveMapper( "org.hibernate.dialect.DB2Dialect" ) );
MAPPERS.put( "DB2/6000", new VersionInsensitiveMapper( "org.hibernate.dialect.DB2Dialect" ) );
MAPPERS.put( "DB2/HPUX", new VersionInsensitiveMapper( "org.hibernate.dialect.DB2Dialect" ) );
MAPPERS.put( "DB2/SUN", new VersionInsensitiveMapper( "org.hibernate.dialect.DB2Dialect" ) );
MAPPERS.put( "DB2/LINUX390", new VersionInsensitiveMapper( "org.hibernate.dialect.DB2Dialect" ) );
MAPPERS.put( "DB2/AIX64", new VersionInsensitiveMapper( "org.hibernate.dialect.DB2Dialect" ) );
> Improvement for DialectFactory
> ------------------------------
>
> Key: HHH-2070
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2070
> Project: Hibernate3
> Issue Type: Patch
> Components: core
> Affects Versions: 3.2.0.cr4
> Reporter: Martin Renner
> Attachments: DialectFactory.patch
>
>
> I would like to have more entries for autodetecting DB2 dialects. According to HHH-1467 I created a patch.
> At the moment, DialectFactory knows just "DB2/NT". We are currently using DB2Dialect for "DB2/6000" and "DB2/LINUX", but we would like to have Hibernate autodetect these dialects.
> So the patch simply adds two new lines to DialectFactory.
> It would be really helpful for us, if this patch would make it into 3.1.x and 3.2.x. The patch works for 3.1.3 and 3.2.0cr4.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list