Package org.hibernate.annotations
Annotation Type CollectionType
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface CollectionTypeNames 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.StringtypeNames the type.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Parameter[]parametersSpecifies configuration information for the type.
-
-
-
Element Detail
-
type
java.lang.String type
Names the type. Could name the implementation class (an implementation ofCollectionTypeorUserCollectionType). Could also name a custom type defined via a@TypeDef
-
-
-
parameters
Parameter[] parameters
Specifies configuration information for the type. Note that if the named type is aUserCollectionType, it must also implementParameterizedTypein order to receive these values.- Default:
- {}
-
-