HHH-10421 : Change "native" ID generator for Oracle12cDialect to SequenceStyleGenerator
This commit is contained in:
parent
0c38cfc9d7
commit
6df1dccc05
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue