Package org.hibernate.annotations
Annotation Type CollectionType
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) @Deprecated public @interface CollectionTypeDeprecated.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.StringtypeDeprecated.Names the type.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Parameter[]parametersDeprecated.Specifies configuration information for the type.java.lang.Class<?>semanticsDeprecated.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 ofCollectionTypeorUserCollectionType). 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, specifyingSetwill use Set semantics. When not specified, will be inferred from the interfaces on the property as long as it extends a standardCollectionorMap.- 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 implementParameterizedTypein order to receive these values.- Default:
- {}
-
-