HHH-10999 Remove configuration setting for configuring the JDBC type for arrays
This commit is contained in:
parent
45fc49314e
commit
497c09cddb
|
@ -396,12 +396,6 @@ Can also specify the name of the constant in `org.hibernate.type.SqlTypes` inste
|
|||
Global setting identifying the preferred JDBC type code for storing instant values.
|
||||
Can also specify the name of the constant in `org.hibernate.type.SqlTypes` instead.
|
||||
|
||||
`*hibernate.type.preferred_array_jdbc_type*` (e.g. `2003` for `java.sql.Types.ARRAY`)::
|
||||
Global setting identifying the preferred JDBC type code for storing basic array and collection values.
|
||||
Can also specify the name of the constant in `org.hibernate.type.SqlTypes` instead.
|
||||
+
|
||||
The default value is determined via `org.hibernate.dialect.Dialect.getPreferredSqlTypeCodeForArray()`.
|
||||
|
||||
==== Bean Validation options
|
||||
`*jakarta.persistence.validation.factory*` (e.g. `jakarta.validation.ValidationFactory` implementation)::
|
||||
Specify the `javax.validation.ValidationFactory` implementation to use for Bean Validation.
|
||||
|
|
|
@ -2556,23 +2556,6 @@ public interface AvailableSettings {
|
|||
@Incubating
|
||||
String PREFERRED_INSTANT_JDBC_TYPE = "hibernate.type.preferred_instant_jdbc_type";
|
||||
|
||||
/**
|
||||
* Specifies the preferred JDBC type for storing basic array and collection values. When no
|
||||
* type is explicitly specified, a sensible
|
||||
* {@link org.hibernate.dialect.Dialect#getPreferredSqlTypeCodeForArray()
|
||||
* dialect-specific default type code} is used.
|
||||
*
|
||||
* Can be overridden locally using {@link org.hibernate.annotations.JdbcType},
|
||||
* {@link org.hibernate.annotations.JdbcTypeCode} and friends
|
||||
*
|
||||
* Can also specify the name of the {@link org.hibernate.type.SqlTypes} constant field. E.g.
|
||||
* {@code hibernate.type.preferred_array_jdbc_type=VARBINARY}
|
||||
*
|
||||
* @since 6.1
|
||||
*/
|
||||
@Incubating
|
||||
String PREFERRED_ARRAY_JDBC_TYPE = "hibernate.type.preferred_array_jdbc_type";
|
||||
|
||||
/**
|
||||
* Specifies a {@link org.hibernate.type.FormatMapper} used for JSON serialization
|
||||
* and deserialization, either:
|
||||
|
|
|
@ -578,15 +578,6 @@ public final class ConfigurationHelper {
|
|||
|
||||
@Incubating
|
||||
public static synchronized int getPreferredSqlTypeCodeForArray(StandardServiceRegistry serviceRegistry) {
|
||||
final Integer typeCode = serviceRegistry.getService( ConfigurationService.class ).getSetting(
|
||||
AvailableSettings.PREFERRED_ARRAY_JDBC_TYPE,
|
||||
TypeCodeConverter.INSTANCE
|
||||
);
|
||||
if ( typeCode != null ) {
|
||||
INCUBATION_LOGGER.incubatingSetting( AvailableSettings.PREFERRED_ARRAY_JDBC_TYPE );
|
||||
return typeCode;
|
||||
}
|
||||
|
||||
// default to the Dialect answer
|
||||
return serviceRegistry.getService( JdbcServices.class )
|
||||
.getJdbcEnvironment()
|
||||
|
|
|
@ -30,8 +30,6 @@ A possible migration could involve the following steps in a migration script:
|
|||
5. For every result, load the Hibernate entity by primary key and set the deserialized value
|
||||
6. Finally, drop the old column `alter table tbl drop column array_col_old`
|
||||
|
||||
To retain backwards compatibility, configure the setting `hibernate.type.preferred_array_jdbc_type` to `VARBINARY`.
|
||||
|
||||
|
||||
== Enum mapping changes
|
||||
|
||||
|
|
Loading…
Reference in New Issue