<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.

Activity

Show:
Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created October 14, 2021 at 10:19 AM
Updated October 27, 2021 at 11:03 AM
Resolved October 14, 2021 at 1:22 PM