Package org.hibernate.annotations
Annotation Type CollectionType
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) @Deprecated public @interface CollectionType
Deprecated.Custom handling for "collection types" will be handled differently in 6.0Names 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 ofCollectionType
orUserCollectionType
). 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, specifyingSet
will use Set semantics. When not specified, will be inferred from the interfaces on the property as long as it extends a standardCollection
orMap
.- 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 aUserCollectionType
, it must also implementParameterizedType
in order to receive these values.- Default:
- {}
-
-