mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-06 19:36:03 +00:00
HHH-15413 For Oracle Dialect from version 8 Envers should use an ordered sequence
This commit is contained in:
parent
0f599da6c4
commit
4b0446427c
@ -11,7 +11,7 @@
|
||||
import org.hibernate.boot.model.relational.QualifiedName;
|
||||
import org.hibernate.boot.model.relational.SqlStringGenerationContext;
|
||||
import org.hibernate.dialect.Dialect;
|
||||
import org.hibernate.dialect.Oracle8iDialect;
|
||||
import org.hibernate.dialect.OracleDialect;
|
||||
import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;
|
||||
import org.hibernate.id.enhanced.SequenceStructure;
|
||||
|
||||
@ -70,9 +70,9 @@ public String[] sqlCreateStrings(SqlStringGenerationContext context) {
|
||||
);
|
||||
|
||||
//noinspection deprecation
|
||||
if ( dialect instanceof Oracle8iDialect ) {
|
||||
if ( dialect instanceof OracleDialect && dialect.getVersion().isSameOrAfter( 8 ) ) {
|
||||
for ( int i = 0; i < createStrings.length; ++i ) {
|
||||
createStrings[ i ] = createStrings[ i ] + ORDER;
|
||||
createStrings[i] = createStrings[i] + ORDER;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user