Package org.hibernate.annotations
Annotation Interface CollectionTypeRegistration
@Target({TYPE,PACKAGE,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Repeatable(CollectionTypeRegistrations.class)
public @interface CollectionTypeRegistration
Allows to register a
UserCollectionType
to use as the default for the specified classification of collection.- Since:
- 6.0
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe collection classification for which the supplied type appliesClass<? extends UserCollectionType>
Specifies the UserCollectionType to use when we encounter a plural attribute classified asclassification()
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecifies configuration information for the type.
-
Element Details
-
classification
CollectionClassification classificationThe collection classification for which the supplied type applies -
type
Class<? extends UserCollectionType> typeSpecifies the UserCollectionType to use when we encounter a plural attribute classified asclassification()
-
-
-
parameters
Parameter[] parametersSpecifies configuration information for the type. Note that if the named type is aUserCollectionType
, it must also implementParameterizedType
in order to receive these values.- Default:
- {}
-