Skip to content

Commit

Permalink
HHH-5435 Add identity column support to the Ingres10Dialect
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20107 1b8cb986-b30d-0410-93ca-fae66ebed9b2
  • Loading branch information
Strong Liu committed Aug 4, 2010
1 parent 7a7d3d8 commit 4813b19
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions core/src/main/java/org/hibernate/dialect/Ingres10Dialect.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Changes:
* <ul>
* <li>Add native BOOLEAN type support</li>
* <li>Add identity column support</li>
* </ul>
*
* @author Raymond Fan
Expand Down Expand Up @@ -55,4 +56,26 @@ protected void registerBooleanSupport() {
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";
}
}

0 comments on commit 4813b19

Please sign in to comment.