package net.sourceforge.fenixedu.domain.phd; import net.sourceforge.fenixedu.domain.exceptions.DomainException; public class PhdProgramServiceAgreementTemplate extends PhdProgramServiceAgreementTemplate_Base { protected PhdProgramServiceAgreementTemplate() { super(); } public PhdProgramServiceAgreementTemplate(final PhdProgram phdProgram) { init(phdProgram); } private void init(PhdProgram phdProgram) { check(phdProgram, "error.phd.PhdProgramServiceAgreementTemplate.phdProgram.cannot.be.null"); super.setPhdProgram(phdProgram); } @Override public void setPhdProgram(PhdProgram phdProgram) { throw new DomainException("error.phd.PhdProgramServiceAgreementTemplate.cannot.modify.phdProgram"); } }