|
CreationTimestamp and UpdateTimestamp should allow java.time objects as alternative to java.util.Dates
Example below only allows java.util.Date. Will not work with java.time dates.
protected Date created; protected Date updated; @UpdateTimestamp @Temporal(TIMESTAMP) public Date getUpdated() { return updated; }
public TGEntity setUpdated(final Date updated) { this.updated = updated; return this; }
@CreationTimestamp @Temporal(TIMESTAMP) public Date getCreated() { return created; }
public TGEntity setCreated(Date created) { this.created = created; return this; }
|