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:
Gail Badner 2016-01-06 15:36:06 -08:00
parent c8ef33b3b4
commit b5870a075e
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ package org.hibernate.dialect;
import org.hibernate.cfg.Environment; import org.hibernate.cfg.Environment;
import org.hibernate.dialect.pagination.LimitHandler; import org.hibernate.dialect.pagination.LimitHandler;
import org.hibernate.dialect.pagination.SQL2008StandardLimitHandler; import org.hibernate.dialect.pagination.SQL2008StandardLimitHandler;
import org.hibernate.id.enhanced.SequenceStyleGenerator;
/** /**
* An SQL dialect for Oracle 12c. * An SQL dialect for Oracle 12c.
@ -37,6 +38,10 @@ public class Oracle12cDialect extends Oracle10gDialect {
return true; return true;
} }
public Class getNativeIdentifierGeneratorClass() {
return SequenceStyleGenerator.class;
}
@Override @Override
public String getIdentityColumnString() { public String getIdentityColumnString() {
return "generated as identity"; return "generated as identity";