Package org.hibernate.annotations
Annotation Type CollectionType
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface CollectionType
Names 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.String
type
Names the type.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Parameter[]
parameters
Specifies configuration information for the type.
-
-
-
Element Detail
-
type
java.lang.String type
Names the type. Could name the implementation class (an implementation ofCollectionType
orUserCollectionType
). 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 implementParameterizedType
in order to receive these values.- Default:
- {}
-
-