The latest Jakarta Persistence spec specifies that:
The Convert annotation may be applied to a basic attribute or to an element collection of basic type (in which case the converter is applied to the elements of the collection). In these cases, the attributeName element must not be specified.
We should only throw the Exception when the Map element is of non-basic type. |