|
19 | 19 | import org.hibernate.QueryTimeoutException;
|
20 | 20 | import org.hibernate.boot.model.FunctionContributions;
|
21 | 21 | import org.hibernate.boot.model.TypeContributions;
|
22 |
| -import org.hibernate.cfg.DialectSpecificSettings; |
23 | 22 | import org.hibernate.dialect.aggregate.AggregateSupport;
|
24 | 23 | import org.hibernate.dialect.aggregate.OracleAggregateSupport;
|
25 | 24 | import org.hibernate.dialect.function.CommonFunctionFactory;
|
|
35 | 34 | import org.hibernate.dialect.temptable.TemporaryTableKind;
|
36 | 35 | import org.hibernate.dialect.unique.CreateTableUniqueDelegate;
|
37 | 36 | import org.hibernate.dialect.unique.UniqueDelegate;
|
38 |
| -import org.hibernate.engine.config.spi.ConfigurationService; |
39 |
| -import org.hibernate.engine.config.spi.StandardConverters; |
40 | 37 | import org.hibernate.engine.jdbc.dialect.spi.DialectResolutionInfo;
|
41 | 38 | import org.hibernate.engine.jdbc.env.spi.IdentifierHelper;
|
42 | 39 | import org.hibernate.engine.jdbc.env.spi.IdentifierHelperBuilder;
|
|
87 | 84 | import org.hibernate.type.NullType;
|
88 | 85 | import org.hibernate.type.StandardBasicTypes;
|
89 | 86 | import org.hibernate.type.descriptor.java.PrimitiveByteArrayJavaType;
|
90 |
| -import org.hibernate.type.descriptor.jdbc.BlobJdbcType; |
91 | 87 | import org.hibernate.type.descriptor.jdbc.JdbcType;
|
92 | 88 | import org.hibernate.type.descriptor.jdbc.NullJdbcType;
|
93 | 89 | import org.hibernate.type.descriptor.jdbc.ObjectNullAsNullTypeJdbcType;
|
@@ -167,16 +163,11 @@ public class OracleDialect extends Dialect {
|
167 | 163 | private static final Pattern SQL_STATEMENT_TYPE_PATTERN =
|
168 | 164 | Pattern.compile( "^(?:/\\*.*?\\*/)?\\s*(select|insert|update|delete)\\s+.*?", CASE_INSENSITIVE );
|
169 | 165 |
|
170 |
| - private static final int PARAM_LIST_SIZE_LIMIT_1000 = 1000; |
171 |
| - |
172 |
| - /** Starting from 23c, 65535 parameters are supported for the IN condition. */ |
173 |
| - private static final int PARAM_LIST_SIZE_LIMIT_65535 = 65535; |
174 |
| - |
175 | 166 | /**
|
176 |
| - * @deprecated Use {@link DialectSpecificSettings#ORACLE_PREFER_LONG_RAW}. |
| 167 | + * Starting from 23c, 65535 parameters are supported for the {@code IN} condition. |
177 | 168 | */
|
178 |
| - @Deprecated(since = "7.0", forRemoval = true) |
179 |
| - public static final String PREFER_LONG_RAW = DialectSpecificSettings.ORACLE_PREFER_LONG_RAW; |
| 169 | + private static final int PARAM_LIST_SIZE_LIMIT_65535 = 65535; |
| 170 | + private static final int PARAM_LIST_SIZE_LIMIT_1000 = 1000; |
180 | 171 |
|
181 | 172 | private static final String yqmSelect =
|
182 | 173 | "(trunc(%2$s, 'MONTH') + numtoyminterval(%1$s, 'MONTH') + (least(extract(day from %2$s), extract(day from last_day(trunc(%2$s, 'MONTH') + numtoyminterval(%1$s, 'MONTH')))) - 1))";
|
@@ -987,12 +978,6 @@ public void contributeTypes(TypeContributions typeContributions, ServiceRegistry
|
987 | 978 | typeContributions.contributeJdbcType( OracleReflectionStructJdbcType.INSTANCE );
|
988 | 979 | }
|
989 | 980 |
|
990 |
| - // account for Oracle's deprecated support for LONGVARBINARY |
991 |
| - // prefer BLOB, unless the user explicitly opts out |
992 |
| - final boolean preferLong = serviceRegistry.requireService( ConfigurationService.class ) |
993 |
| - .getSetting( PREFER_LONG_RAW, StandardConverters.BOOLEAN, false ); |
994 |
| - typeContributions.contributeJdbcType( preferLong ? BlobJdbcType.PRIMITIVE_ARRAY_BINDING : BlobJdbcType.DEFAULT ); |
995 |
| - |
996 | 981 | if ( getVersion().isSameOrAfter( 21 ) ) {
|
997 | 982 | typeContributions.contributeJdbcType( OracleJsonJdbcType.INSTANCE );
|
998 | 983 | typeContributions.contributeJdbcTypeConstructor( OracleJsonArrayJdbcTypeConstructor.NATIVE_INSTANCE );
|
|
0 commit comments