As discussed on our call today, introduce a setting that allows configuring the following three behaviors for Byte[]/Character[] handling:
- INVALID(default) - Throw an informative and actionable error if the types are used explicitly in the domain model
- ALLOW - Do not throw an error, but keep the array semantics proper i.e. allow null elements
- LEGACY - Legacy behavior i.e. use ByteArrayJavaType and CharacterArrayJavaType which disallow null elements
Document the setting in the migration guide. |