Annotation Interface CompositeType


@Target({METHOD,FIELD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface CompositeType
Specifies a custom CompositeUserType for the annotated attribute mapping. Just like the @Type annotation, this annotation may be applied:
  • directly to a property or field of an entity to specify the custom type of the property or field,
  • indirectly, as a meta-annotation of an annotation type that is then applied to various properties and fields, or
  • by default, via a registration.
See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends CompositeUserType<?>>
    The custom type implementor class