Package org.hibernate.annotations
Annotation Type JdbcType
-
@Target({METHOD,FIELD,ANNOTATION_TYPE}) @Inherited @Retention(RUNTIME) public @interface JdbcType
Specifies an explicitJdbcType
to use for a particular column mapping.-
When applied to a Map-valued attribute, describes the Map value. Use
MapKeyJdbcType
to describe the key instead -
When applied to a List of array-valued attribute, describes the element. Use
ListIndexJdbcType
to describe the index instead -
When mapping an id-bag, describes the collection element. Use
CollectionIdJdbcType
to describe the collection-id - For other collection mappings, describes the elements
- For discriminated association mappings (`@Any` and `@ManyToAny`), describes the discriminator value.
ManagedBean
See for high-level discussion of basic value mapping.- Since:
- 6.0
- See Also:
MapKeyJdbcType
,CollectionIdJdbcType
,ListIndexJdbcType
-
When applied to a Map-valued attribute, describes the Map value. Use