HHH-16085 Document how to revert to pre-6.1 behavior for array mapping
This commit is contained in:
parent
32feb71447
commit
746ab97c8e
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue