package net.sourceforge.fenixedu.domain; public class CandidateEnrolment extends CandidateEnrolment_Base { public CandidateEnrolment() { super(); setRootDomainObject(RootDomainObject.getInstance()); } public CandidateEnrolment(MasterDegreeCandidate masterDegreeCandidate, CurricularCourse curricularCourse) { this(); setMasterDegreeCandidate(masterDegreeCandidate); setCurricularCourse(curricularCourse); } public void delete() { removeCurricularCourse(); removeMasterDegreeCandidate(); removeRootDomainObject(); super.deleteDomainObject(); } }