/* * Created on Jun 26, 2004 */ package net.sourceforge.fenixedu.dataTransferObject.grant.contract; import net.sourceforge.fenixedu.domain.grant.contract.GrantInsurance; /** * @author Pica * @author Barbosa */ public class InfoGrantInsuranceWithContractAndPaymentEntity extends InfoGrantInsurance { public void copyFromDomain(GrantInsurance grantInsurance) { super.copyFromDomain(grantInsurance); if (grantInsurance != null) { setInfoGrantContract(InfoGrantContractWithGrantOwnerAndGrantType.newInfoFromDomain(grantInsurance.getGrantContract())); setInfoGrantPaymentEntity(InfoGrantPaymentEntity.newInfoFromDomain(grantInsurance.getGrantPaymentEntity())); } } public static InfoGrantInsurance newInfoFromDomain(GrantInsurance grantInsurance) { InfoGrantInsuranceWithContractAndPaymentEntity infoGrantInsuranceWithContract = null; if (grantInsurance != null) { infoGrantInsuranceWithContract = new InfoGrantInsuranceWithContractAndPaymentEntity(); infoGrantInsuranceWithContract.copyFromDomain(grantInsurance); } return infoGrantInsuranceWithContract; } }