Package org.hibernate.annotations
Annotation Type JdbcTypeCode
-
@Target({METHOD,FIELD,ANNOTATION_TYPE}) @Inherited @Retention(RUNTIME) public @interface JdbcTypeCode
Specifies the JDBC type-code to use for the column mapping.-
When applied to a Map-valued attribute, describes the Map value. Use
MapKeyJdbcTypeCode
to describe the key instead -
When applied to a List of array-valued attribute, describes the element. Use
ListIndexJdbcTypeCode
to describe the index instead -
When mapping an id-bag, describes the collection element. Use
CollectionIdJdbcTypeCode
to describe the collection-id - For other collection mappings, describes the elements
- For discriminated association mappings (`@Any` and `@ManyToAny`), describes the discriminator value.
Types
, but are not limited to these. The code is resolved against an internal registry ofJdbcType
references. See the user-guide for additional details. See for high-level discussion of basic value mapping.- Since:
- 6.0
- See Also:
JdbcType
,JdbcTypeRegistry
,MapKeyJdbcTypeCode
,CollectionIdJdbcTypeCode
,ListIndexJdbcTypeCode
-
When applied to a Map-valued attribute, describes the Map value. Use
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
value
The standard JDBC Types code or a custom code.
-
-
-
Element Detail
-
value
int value
The standard JDBC Types code or a custom code. This ultimately decides whichJdbcType
is used to "understand" the described SQL data type
-
-