The intent is to be able to extract the definition of auto-applying an AttributeConverter outside of the converter itself. Generally you have:
The converter implementation has to specify this auto-application, rather than the application controlling this.
Sometimes it is not a good idea for a converter to specify auto-apply, especially considering scanning and other auto-detection of “managed classes”. So allow a way to specify this externally. E.g.
This correlates to orm:converter from the https://jakarta.ee/xml/ns/persistence/orm schema in terms of XML mappings
The intent is to be able to extract the definition of auto-applying an AttributeConverter outside of the converter itself. Generally you have:
The converter implementation has to specify this auto-application, rather than the application controlling this.
Sometimes it is not a good idea for a converter to specify auto-apply, especially considering scanning and other auto-detection of “managed classes”. So allow a way to specify this externally. E.g.
This correlates to
orm:converter
from thehttps://jakarta.ee/xml/ns/persistence/orm
schema in terms of XML mappings