mongoDBに似たものはありますか? @Temporal(TemporalType.TIMESTAMP)
@NotNull
@Temporal(TemporalType.TIMESTAMP)
@DateTimeFormat(style = "M-")
private Date lastUpdateDate;
ドキュメントが更新されるたびに「lastUpdateDate」を自動的に更新するフィールドを作成しようとしています。
また
春のルーで
フィールド日付 --fieldName lastUpdateDate --type java.util.Date --notNull --persistenceType JPA_TIMESTAMP