Package org.hibernate.annotations
Annotation Type 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 Class<? extends UserCollectionType>
type
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 Parameter[]
parameters
Specifies configuration information for the type.
-
-
-
Element Detail
-
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 aUserCollectionType
, it must also implementParameterizedType
in order to receive these values.- Default:
- {}
-
-