HHH-16085 Document how to revert to pre-6.1 behavior for array mapping

This commit is contained in:
Yoann Rodière 2023-01-24 12:13:28 +01:00
parent 32feb71447
commit 746ab97c8e
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,14 @@ 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 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` 6. Finally, drop the old column `alter table tbl drop column array_col_old`
Alternatively, to revert to pre-6.1 behavior, annotate your array property with `@JdbcTypeCode(SqlTypes.VARBINARY)`:
[source,java]
----
@Basic
@JdbcTypeCode(SqlTypes.VARBINARY)
double[] myArray;
----
== Enum mapping changes == Enum mapping changes