class BaseEntity implements Serializable {

    @PrePersist
    public void initializeDates() {
        if (forceCreateDate != null) {
            this.created = forceCreateDate;
        } else {
            this.created = new Date();
        }
        this.modified = new Date();
    }

}