HHH-5435 Add identity column support to the Ingres10Dialect

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20107 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-08-04 13:41:58 +00:00
parent 7a7d3d8daf
commit 4813b1973b
1 changed files with 23 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import org.hibernate.dialect.function.NoArgSQLFunction;
* Changes:
* <ul>
* <li>Add native BOOLEAN type support</li>
* <li>Add identity column support</li>
* </ul>
*
* @author Raymond Fan
@ -55,4 +56,26 @@ public class Ingres10Dialect extends Ingres9Dialect {
properties.setProperty(Environment.QUERY_SUBSTITUTIONS, newQuerySubst);
}
}
// IDENTITY support ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public boolean supportsIdentityColumns() {
return true;
}
public boolean hasDataTypeInIdentityColumn() {
return true;
}
public String getIdentitySelectString() {
return "select last_identity()";
}
public String getIdentityColumnString() {
return "not null generated by default as identity";
}
public String getIdentityInsertString() {
return "default";
}
}