public StudentCurricularPlan(Student student, DegreeCurricularPlan degreeCurricularPlan, StudentCurricularPlanState studentCurricularPlanState, Date startDate) {  this.setRootDomainObject(RootDomainObject.getInstance()); this.setOjbConcreteClass(getClass().getName());  setCurrentState(studentCurricularPlanState); setDegreeCurricularPlan(degreeCurricularPlan); setStartDate(startDate); setStudent(student); setWhen(new Date());  if (!canSetStateToActive() && studentCurricularPlanState.equals(StudentCurricularPlanState.ACTIVE)) { inactivateTheActiveStudentCurricularPlan(); setCurrentState(studentCurricularPlanState); }
public StudentCurricularPlan() { super(); setRootDomainObject(RootDomainObject.getInstance()); setOjbConcreteClass(getClass().getName());
    public StudentCurricularPlan(Student student, DegreeCurricularPlan degreeCurricularPlan,            StudentCurricularPlanState studentCurricularPlanState, Date startDate) {        this.setRootDomainObject(RootDomainObject.getInstance());        this.setOjbConcreteClass(getClass().getName());        setCurrentState(studentCurricularPlanState);        setDegreeCurricularPlan(degreeCurricularPlan);        setStartDate(startDate);        setStudent(student);        setWhen(new Date());        if (!canSetStateToActive()                && studentCurricularPlanState.equals(StudentCurricularPlanState.ACTIVE)) {            inactivateTheActiveStudentCurricularPlan();            setCurrentState(studentCurricularPlanState);        }    }