HHH-10421 : Change "native" ID generator for Oracle12cDialect to SequenceStyleGenerator
(cherry picked from commit 6df1dccc05
)
Conflicts:
hibernate-core/src/main/java/org/hibernate/dialect/Oracle12cDialect.java
This commit is contained in:
parent
c8ef33b3b4
commit
b5870a075e
|
@ -9,6 +9,7 @@ package org.hibernate.dialect;
|
|||
import org.hibernate.cfg.Environment;
|
||||
import org.hibernate.dialect.pagination.LimitHandler;
|
||||
import org.hibernate.dialect.pagination.SQL2008StandardLimitHandler;
|
||||
import org.hibernate.id.enhanced.SequenceStyleGenerator;
|
||||
|
||||
/**
|
||||
* An SQL dialect for Oracle 12c.
|
||||
|
@ -37,6 +38,10 @@ public class Oracle12cDialect extends Oracle10gDialect {
|
|||
return true;
|
||||
}
|
||||
|
||||
public Class getNativeIdentifierGeneratorClass() {
|
||||
return SequenceStyleGenerator.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getIdentityColumnString() {
|
||||
return "generated as identity";
|
||||
|
|
Loading…
Reference in New Issue