this.setBeginDate(beginDate);
    public void edit(IFunction function, Date beginDate, Date endDate, Integer credits) {        this.setFunction(function);        this.setCredits(credits);        this.setEndDate(endDate);        this.setBeginDate(beginDate);    }