Annotation Interface CollectionType


@Target({FIELD,METHOD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface CollectionType
Names a custom collection type for a persistent collection.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Specifies the UserCollectionType to use when mapping the attribute to which this annotation is attached.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Specifies configuration information for the type.
  • Element Details

    • type

      Class<? extends UserCollectionType> type
      Specifies the UserCollectionType to use when mapping the attribute to which this annotation is attached.
    • parameters

      Parameter[] parameters
      Specifies configuration information for the type. Note that if the named type is a UserCollectionType, it must also implement ParameterizedType in order to receive these values.
      Default:
      {}