package net.sourceforge.fenixedu.domain; import net.sourceforge.fenixedu.domain.student.Registration; import com.linkare.commons.metainfo.Linkare; @Linkare(author = "Paulo Zenida") public class YearStudentSpecialSituationCode extends YearStudentSpecialSituationCode_Base { private YearStudentSpecialSituationCode() { super(); setRootDomainObject(RootDomainObject.getInstance()); } public YearStudentSpecialSituationCode(Registration registration, ExecutionYear executionYear, SpecialSituationCode specialSituationCode) { this(); setStudent(registration); setExecutionYear(executionYear); setSpecialSituationCode(specialSituationCode); } public void delete() { setExecutionYear(null); setStudent(null); setSpecialSituationCode(null); super.deleteDomainObject(); } }