Package org.hibernate.annotations
Annotation Type CollectionTypeRegistration
-
@Target({TYPE,PACKAGE,ANNOTATION_TYPE}) @Retention(RUNTIME) @Repeatable(CollectionTypeRegistrations.class) public @interface CollectionTypeRegistration
Allows to register aUserCollectionType
to use as the default for the specified classification of collection.- Since:
- 6.0
- See Also:
CollectionType
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description CollectionClassification
classification
The collection classification for which the supplied type appliesClass<? extends UserCollectionType>
type
Specifies the UserCollectionType to use when we encounter a plural attribute classified asclassification()
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Parameter[]
parameters
Specifies configuration information for the type.
-
-
-
Element Detail
-
classification
CollectionClassification classification
The collection classification for which the supplied type applies
-
-
-
type
Class<? extends UserCollectionType> type
Specifies the UserCollectionType to use when we encounter a plural attribute classified asclassification()
-
-
-
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:
- {}
-
-