Annotation Interface CustomValueType


@Inherited @Retention(RUNTIME) @Target({TYPE,FIELD,RECORD_COMPONENT}) public @interface CustomValueType
Annotates the class, or entity field/record component as having a custom value converter.
The specified converter will be used by YOJ instead of the default (Database column↔Java field) mapping.

Annotation on entity field/record component has priority over annotation on the field's/record component's class.

This annotation is inherited, so make sure that your converter either supports all possible subclasses of your class, or restrict subclassing by making your class final or sealed.