package net.sourceforge.fenixedu.dataTransferObject.student; import java.io.Serializable; import net.sourceforge.fenixedu.domain.DomainReference; import net.sourceforge.fenixedu.domain.ExecutionYear; import net.sourceforge.fenixedu.domain.student.Registration; import net.sourceforge.fenixedu.domain.student.Student; public class RegistrationSelectExecutionYearBean implements Serializable { private DomainReference registration; private DomainReference executionYear; protected RegistrationSelectExecutionYearBean() { } public RegistrationSelectExecutionYearBean(Registration registration) { this(); setRegistration(registration); } public Registration getRegistration() { return (this.registration != null) ? this.registration.getObject() : null; } protected void setRegistration(Registration registration) { this.registration = (registration != null) ? new DomainReference(registration) : null; } public ExecutionYear getExecutionYear() { return (this.executionYear != null) ? this.executionYear.getObject() : null; } public void setExecutionYear(ExecutionYear executionYear) { this.executionYear = (executionYear != null) ? new DomainReference(executionYear) : null; } public Student getStudent() { return getRegistration().getStudent(); } }