Package org.hibernate.annotations
Annotation Type FractionalSeconds
@Target({METHOD,FIELD})@Retention(RUNTIME)@Incubatingpublic @interfaceFractionalSeconds
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 theDialect default
Required Element Summary
Required Elements Modifier and Type Required Element Description intvalueThe fractional precision for the associated seconds.