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:
parent
7a7d3d8daf
commit
4813b1973b
|
@ -13,6 +13,7 @@ import org.hibernate.dialect.function.NoArgSQLFunction;
|
||||||
* Changes:
|
* Changes:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>Add native BOOLEAN type support</li>
|
* <li>Add native BOOLEAN type support</li>
|
||||||
|
* <li>Add identity column support</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* @author Raymond Fan
|
* @author Raymond Fan
|
||||||
|
@ -55,4 +56,26 @@ public class Ingres10Dialect extends Ingres9Dialect {
|
||||||
properties.setProperty(Environment.QUERY_SUBSTITUTIONS, newQuerySubst);
|
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";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue