public static IclubPerson fromWStoORM(
      IclubPersonModel model,
      IclubIdTypeDAO iclubIdTypeDAO,
      IclubPersonDAO iclubPersonDAO,
      IclubMaritalStatusDAO IclubMaritalStatusDAO,
      IclubCohortDAO iclubCohortDAO,
      IclubCohortInviteDAO iclubCohortInviteDAO) {

    IclubPerson bean = new IclubPerson();

    bean.setPId(model.getPId());
    bean.setPCrtdDt(model.getPCrtdDt());
    bean.setPDob(model.getPDob());
    bean.setPEmail(model.getPEmail());
    bean.setPFName(model.getPFName());
    bean.setPIdNum(model.getPIdNum());
    bean.setPLName(model.getPLName());
    bean.setPMobile(model.getPMobile());
    bean.setPAddress(model.getPAddress());
    bean.setPContactPref(model.getPContactPref());
    bean.setPGender(model.getPGender());
    bean.setPIdNum(model.getPIdNum());
    bean.setPContactPref(model.getPContactPref());
    bean.setPIdExpiryDt(model.getPIdExpiryDt());
    bean.setPIdIssueDt(model.getPIdIssueDt());
    bean.setPInitials(model.getPInitials());
    bean.setPIsPensioner(model.getPIsPensioner());
    bean.setPIdIssueCntry(model.getPIdIssueCntry());
    bean.setPLat(model.getPLat());
    bean.setPLong(model.getPLong());
    bean.setPOccupation(model.getPOccupation());
    bean.setPTitle(model.getPTitle());
    bean.setPAge(model.getPAge());
    bean.setPZipCd(model.getPZipCd());
    bean.setIclubIdType(
        model.getIclubIdType() != null ? iclubIdTypeDAO.findById(model.getIclubIdType()) : null);
    bean.setIclubCohort(
        model.getIclubCohort() != null ? iclubCohortDAO.findById(model.getIclubCohort()) : null);
    bean.setIclubPerson(
        model.getIclubPerson() != null && !model.getIclubPerson().trim().equalsIgnoreCase("")
            ? iclubPersonDAO.findById(model.getIclubPerson())
            : null);
    bean.setIclubMaritalStatus(
        model.getIclubMaritalStatus() != null
            ? IclubMaritalStatusDAO.findById(model.getIclubMaritalStatus())
            : null);
    bean.setIclubPerson(
        model.getIclubPerson() != null ? iclubPersonDAO.findById(model.getIclubPerson()) : null);
    bean.setIclubCohortInvite(
        model.getIclubCohortInvite() != null
            ? iclubCohortInviteDAO.findById(model.getIclubCohortInvite())
            : null);
    return bean;
  }
  public static IclubPersonBean fromWStoUI(IclubPersonModel model) {

    IclubPersonBean bean = new IclubPersonBean();

    bean.setPId(model.getPId());
    bean.setPCrtdDt(model.getPCrtdDt());
    bean.setPDob(model.getPDob());
    bean.setPEmail(model.getPEmail());
    bean.setPFName(model.getPFName());
    bean.setPIdNum(model.getPIdNum());
    bean.setPLName(model.getPLName());
    bean.setPAge(model.getPAge());
    bean.setPMobile(model.getPMobile());
    bean.setPAddress(model.getPAddress());
    bean.setPContactPref(model.getPContactPref());
    bean.setPGender(model.getPGender());
    bean.setPContactPref(model.getPContactPref());
    bean.setPIdExpiryDt(model.getPIdExpiryDt());
    bean.setPInitials(model.getPInitials());
    bean.setPIsPensioner(model.getPIsPensioner());
    bean.setPIdIssueCntry(
        model.getPIdIssueCntry() != null ? model.getPIdIssueCntry().longValue() : null);
    bean.setPIdIssueDt(model.getPIdIssueDt());
    bean.setPLat(model.getPLat());
    bean.setPLong(model.getPLong());
    bean.setPOccupation(model.getPOccupation());
    bean.setPTitle(model.getPTitle());
    bean.setPZipCd(model.getPZipCd());
    bean.setIclubIdType(model.getIclubIdType());
    bean.setItLongDesc(model.getItLongDesc());
    bean.setIclubMaritalStatus(model.getIclubMaritalStatus());
    bean.setMsLongDesc(model.getMsLongDesc());
    bean.setIclubPerson(model.getIclubPerson());
    bean.setPFNameAndLName(model.getPFNameAndLName());
    bean.setIclubCohort(model.getIclubCohort());
    bean.setCEmail(model.getCEmail());
    bean.setIclubCohortInvite(model.getIclubCohortInvite());

    return bean;
  }