Does @PreUpdate always run when @PrePersist runs?
问题 I have an Entity like below: @Entity public class Order { @Id private String orderId; @Temporal(TemporalType.TIMESTAMP) @Column(name = "created_at", nullable = false) private Date created; @Temporal(TemporalType.TIMESTAMP) @Column(name = "updated_at", nullable = false) private Date updated; @PrePersist protected void onCreate() { this.created = new Date(); this.updated = this.created; } @PreUpdate protected void onUpdate() { this.updated = new Date(); } } I have to find all the orders that