/* * Created on Nov 24, 2003 by jpvl * */ package net.sourceforge.fenixedu.dataTransferObject.degree.finalProject; import net.sourceforge.fenixedu.dataTransferObject.InfoStudent; import net.sourceforge.fenixedu.dataTransferObject.InfoTeacher; import net.sourceforge.fenixedu.domain.degree.finalProject.TeacherDegreeFinalProjectStudent; /** * @author jpvl */ public class InfoTeacherDegreeFinalProjectStudentWithStudentAndPerson extends InfoTeacherDegreeFinalProjectStudent { public void copyFromDomain(final TeacherDegreeFinalProjectStudent teacherDegreeFinalProjectStudent) { super.copyFromDomain(teacherDegreeFinalProjectStudent); if (teacherDegreeFinalProjectStudent != null) { setInfoStudent(InfoStudent.newInfoFromDomain(teacherDegreeFinalProjectStudent.getStudent())); setInfoTeacher(InfoTeacher.newInfoFromDomain(teacherDegreeFinalProjectStudent.getTeacher())); } } public static InfoTeacherDegreeFinalProjectStudentWithStudentAndPerson newInfoFromDomain( final TeacherDegreeFinalProjectStudent teacherDegreeFinalProjectStudent) { if (teacherDegreeFinalProjectStudent != null) { InfoTeacherDegreeFinalProjectStudentWithStudentAndPerson infoTeacherDegreeFinalProjectStudent = new InfoTeacherDegreeFinalProjectStudentWithStudentAndPerson(); infoTeacherDegreeFinalProjectStudent.copyFromDomain(teacherDegreeFinalProjectStudent); return infoTeacherDegreeFinalProjectStudent; } return null; } }