Package org.hibernate.annotations
Annotation Type CreationTimestamp
-
@Retention(RUNTIME) @Target({FIELD,METHOD}) public @interface CreationTimestamp
Marks a property as the creation timestamp of the containing entity. The property value will be set to the current VM date exactly once when saving the owning entity for the first time.Supported property types:
Date
Calendar
Date
Time
Timestamp
Instant
LocalDate
LocalDateTime
LocalTime
MonthDay
OffsetDateTime
OffsetTime
Year
YearMonth
ZonedDateTime