HHH-7059 The DerbyDialect deprecation warning should appear no more,

when using one of the version-specific dialects
This commit is contained in:
Guenther Demetz 2012-05-03 14:00:01 +02:00 committed by Strong Liu
parent 401d4902fd
commit a043701de7
1 changed files with 3 additions and 1 deletions

View File

@ -56,7 +56,9 @@ public class DerbyDialect extends DB2Dialect {
public DerbyDialect() { public DerbyDialect() {
super(); super();
LOG.deprecatedDerbyDialect(); if (this.getClass() == DerbyDialect.class) {
LOG.deprecatedDerbyDialect();
}
registerFunction( "concat", new DerbyConcatFunction() ); registerFunction( "concat", new DerbyConcatFunction() );
registerFunction( "trim", new AnsiTrimFunction() ); registerFunction( "trim", new AnsiTrimFunction() );
registerColumnType( Types.BLOB, "blob" ); registerColumnType( Types.BLOB, "blob" );