private Registration(Person person, Integer studentNumber, StudentKind studentKind, StudentCandidacy studentCandidacy) { this(); if (person.hasStudent()) { setStudent(person.getStudent()); } else { setStudent(new Student(person, studentNumber)); } setPayedTuition(true); setStudentKind(studentKind); setStudentCandidacy(studentCandidacy); setRegistrationYear(ExecutionYear.readCurrentExecutionYear()); setRequestedChangeDegree(false); setRequestedChangeBranch(false);
public Registration() { super(); setRootDomainObject(RootDomainObject.getInstance()); setStartDate(new YearMonthDay()); new RegisteredState(this, AccessControl.getUserView() != null ? AccessControl.getUserView() .getPerson() : null, new DateTime());
    private Registration(Person person, Integer studentNumber, StudentKind studentKind,	    StudentCandidacy studentCandidacy) {	this();	if (person.hasStudent()) {	    setStudent(person.getStudent());	} else {	    setStudent(new Student(person, studentNumber));	}	setPayedTuition(true);	setStudentKind(studentKind);	setStudentCandidacy(studentCandidacy);	setRegistrationYear(ExecutionYear.readCurrentExecutionYear());	setRequestedChangeDegree(false);	setRequestedChangeBranch(false);    }