注释类型 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.- 作者:
- Steve Ebersole
- 另请参阅:
CollectionType,UserCollectionType
-
-
元素详细资料
-
type
String type
Names the type. Could name the implementation class (an implementation ofCollectionTypeorUserCollectionType). Could also name a custom type defined via a@TypeDef
-
-
-
semantics
Class<?> semantics
Specifies the class to use the semantics of. For example, specifyingSetwill use Set semantics. When not specified, will be inferred from the interfaces on the property as long as it extends a standardCollectionorMap.- 返回:
- the class to use the semantics of.
- 默认值:
- void.class
-
-
-
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.- 默认值:
- {}
-
-