If your goal is simply to set the createdAt or updatedAt fields and you are using EBean, try @CreatedTimestamp and @UpdatedTimestamp . See here . I would rather use the Biesior approach, but it doesn't seem to work on Cascades - the methods have never been called.
@Column(name="created_at") @CreatedTimestamp private Date createdAt; @Column(name="updated_at") @UpdatedTimestamp private Date updatedAt;
liberty
source share