@@ -315,10 +315,10 @@ The default precision for SQL Server timestamps was changed to 7 i.e. 100 nanose
315
315
316
316
Note that these changes only affect DDL generation.
317
317
318
- [[array-mapping-changes-on-db2-sap-hana-and-sybase-ase]]
319
- == Array mapping changes on DB2, SAP HANA and Sybase ASE
318
+ [[array-mapping-changes-on-db2-sap-hana-sql-server- and-sybase-ase]]
319
+ == Array mapping changes on DB2, SAP HANA, SQL Server and Sybase ASE
320
320
321
- On DB2, SAP HANA and Sybase ASE, basic arrays now map to the `SqlTypes.XML_ARRAY` type code,
321
+ On DB2, SAP HANA, SQL Server and Sybase ASE, basic arrays now map to the `SqlTypes.XML_ARRAY` type code,
322
322
whereas previously, the dialect mapped arrays to `SqlTypes.VARBINARY`.
323
323
The `SqlTypes.XML_ARRAY` type uses the `xml` DDL type which enables using arrays in other features through the various XML functions.
324
324
@@ -338,6 +338,19 @@ The migration requires to read data and re-save it.
338
338
339
339
To retain backwards compatibility, configure the setting `hibernate.type.preferred_array_jdbc_type` to `VARBINARY`.
340
340
341
+ [[xml-format-mapper-changes]]
342
+ == XML FormatMapper changes
343
+
344
+ Previous versions of Hibernate ORM used an undefined/provider-specific format for serialization/deserialization of
345
+ collections, maps and byte arrays to/from XML, which is not portable.
346
+
347
+ XML FormatMapper implementations were changed to now use a portable format for collections, maps and byte arrays.
348
+ This change is necessary to allow mapping basic arrays as `SqlTypes.XML_ARRAY`.
349
+
350
+ The migration requires to read data and re-save it.
351
+
352
+ To retain backwards compatibility, configure the setting `hibernate.type.xml_format_mapper.legacy_format` to `true`.
353
+
341
354
[[sf-name]]
342
355
== SessionFactory Name (and JNDI)
343
356
0 commit comments