<converter class="..."> in orm.xml ignores the <package> element
Description
See org.hibernate.cfg.annotations.reflection.internal.XMLContext#setLocalAttributeConverterDefinitions: we take the class name as-is, and don't even try to prefix it with the package given in the <package> element.
This seems incorrect, since we do use the prefix for every other class name.
Also, according to the JPA spec (emphasis mine):
The package subelement specifies the package of the classes listed within the subelements and attributes of the same mapping file only. The package subelement is overridden if the fully qualified class name is specified for a class and the two disagree.
This does not appear limited to the <entity>, mapped-superclass and embeddable elements.
See
org.hibernate.cfg.annotations.reflection.internal.XMLContext#setLocalAttributeConverterDefinitions
: we take the class name as-is, and don't even try to prefix it with the package given in the<package>
element.This seems incorrect, since we do use the prefix for every other class name.
Also, according to the JPA spec (emphasis mine):
This does not appear limited to the
<entity>
,mapped-superclass
andembeddable
elements.