HHH-16591 Update the docs to use `JdbcTypeCode` instead of `JdbcType` to override an SQL type for Duration
This commit is contained in:
parent
83d706d092
commit
c1ecd20850
|
@ -990,7 +990,7 @@ include::{example-dir-basic-mapping}/basic/BlobByteArrayTest.java[tags=basic-blo
|
||||||
|
|
||||||
By default, Hibernate maps `Duration` to the `NUMERIC` SQL type.
|
By default, Hibernate maps `Duration` to the `NUMERIC` SQL type.
|
||||||
|
|
||||||
TIP: It's possible to map `Duration` to the `INTERVAL_SECOND` SQL type using `@JdbcType(INTERVAL_SECOND)` or by setting `hibernate.type.preferred_duration_jdbc_type=INTERVAL_SECOND`
|
TIP: It's possible to map `Duration` to the `INTERVAL_SECOND` SQL type using `@JdbcTypeCode(INTERVAL_SECOND)` or by setting `hibernate.type.preferred_duration_jdbc_type=INTERVAL_SECOND`
|
||||||
|
|
||||||
[[basic-duration-example]]
|
[[basic-duration-example]]
|
||||||
.Mapping Duration
|
.Mapping Duration
|
||||||
|
|
Loading…
Reference in New Issue