HHH-10421 : Change "native" ID generator for Oracle12cDialect to SequenceStyleGenerator

This commit is contained in:
Gail Badner 2016-01-06 15:36:06 -08:00
parent 0c38cfc9d7
commit 6df1dccc05
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import org.hibernate.dialect.identity.IdentityColumnSupport;
import org.hibernate.dialect.identity.Oracle12cIdentityColumnSupport;
import org.hibernate.dialect.pagination.LimitHandler;
import org.hibernate.dialect.pagination.SQL2008StandardLimitHandler;
import org.hibernate.id.enhanced.SequenceStyleGenerator;
/**
* An SQL dialect for Oracle 12c.
@ -34,6 +35,11 @@ public class Oracle12cDialect extends Oracle10gDialect {
return SQL2008StandardLimitHandler.INSTANCE;
}
@Override
public Class getNativeIdentifierGeneratorClass() {
return SequenceStyleGenerator.class;
}
@Override
public IdentityColumnSupport getIdentityColumnSupport() {
return new Oracle12cIdentityColumnSupport();