Annotation Type CollectionType


  • @Target({FIELD,METHOD})
    @Retention(RUNTIME)
    @Deprecated
    public @interface CollectionType
    Deprecated.
    Custom handling for "collection types" will be handled differently in 6.0
    Names a custom collection type for a persistent collection. The collection can also name a @Type, which defines the Hibernate Type of the collection elements.
    See Also:
    CollectionType, UserCollectionType
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String type
      Deprecated.
      Names the type.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Parameter[] parameters
      Deprecated.
      Specifies configuration information for the type.
      java.lang.Class<?> semantics
      Deprecated.
      Specifies the class to use the semantics of.
    • Element Detail

      • type

        java.lang.String type
        Deprecated.
        Names the type. Could name the implementation class (an implementation of CollectionType or UserCollectionType). Could also name a custom type defined via a @TypeDef
      • semantics

        java.lang.Class<?> semantics
        Deprecated.
        Specifies the class to use the semantics of. For example, specifying Set will use Set semantics. When not specified, will be inferred from the interfaces on the property as long as it extends a standard Collection or Map.
        Returns:
        the class to use the semantics of.
        Default:
        void.class
      • parameters

        Parameter[] parameters
        Deprecated.
        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:
        {}