Package org.hibernate.annotations
Annotation Type JavaType
-
@Inherited @Target({METHOD,FIELD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface JavaType
Specify an explicitBasicJavaTypeto use for a particular column mapping.-
When applied to a Map-valued attribute, describes the Map value. Use
MapKeyJavaTypeto describe the key instead -
When applied to a List of array-valued attribute, describes the element. Use
ListIndexJavaTypeto describe the index instead -
When mapping an id-bag, describes the collection element. Use
CollectionIdJavaTypeto describe the collection-id - For other collection mappings, describes the elements
ManagedBeanSee for high-level discussion of basic value mapping.- Since:
- 6.0
- See Also:
MapKeyJavaType,CollectionIdJavaType,ListIndexJavaType,AnyKeyJavaType
-
When applied to a Map-valued attribute, describes the Map value. Use
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description Class<? extends BasicJavaType<?>>valueTheBasicJavaTypeto use for the mapped column
-
-
-
Element Detail
-
value
Class<? extends BasicJavaType<?>> value
TheBasicJavaTypeto use for the mapped column
-
-