Package org.hibernate.annotations
Annotation Type FractionalSeconds
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) @Incubating public @interface FractionalSeconds
Indicates that the associated temporal value should be stored with fractional seconds. Only valid for values which contain seconds.- See Also:
Instant
,LocalDateTime
,LocalTime
,OffsetDateTime
,OffsetTime
,ZonedDateTime
,Time
,Timestamp
,Calendar
- API Note:
- The presence or absence of this annotation implies different semantics for time versus timestamp based values. By default, time values are stored without fractional seconds whereas timestamp values are stored with a precision based on the Dialect default
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description int
value
The fractional precision for the associated seconds.
-