use of gov.ca.cwds.cals.persistence.dao.calsns.LIC198bDao in project cals-api by ca-cwds.
the class LIC198bService method create.
@Override
public LIC198bFormDTO create(RFAExternalEntityUpdateParameterObject<LIC198bFormDTO> request) {
LIC198bForm lic198bForm = composeEntity(request);
LIC198bDao dao = (LIC198bDao) getDao();
if (request instanceof RFAApplicantAwareEntityUpdateParams) {
RFAApplicantAwareEntityUpdateParams params = (RFAApplicantAwareEntityUpdateParams) request;
lic198bForm = dao.createForApplicant(lic198bForm, params.getApplicantId());
} else if (request instanceof RFAOtherAdultAwareEntityUpdateParams) {
RFAOtherAdultAwareEntityUpdateParams params = (RFAOtherAdultAwareEntityUpdateParams) request;
lic198bForm = dao.createForOtherAdult(lic198bForm, params.getOtherAdultId());
}
return extractDTO(lic198bForm);
}
Aggregations