Пример #1
0
  public static AgreementInstance getInstance(Agreement dbInstance) {
    AgreementInstance instance = new AgreementInstance();

    instance.setId(dbInstance.getId());
    instance.setBillUcn(dbInstance.getBillUcn());
    instance.setBillUcnSuffix(dbInstance.getBillUcnSuffix());
    instance.setAgreementTypeCode(dbInstance.getAgreementTypeCode());
    instance.setAgreementLinkId(dbInstance.getAgreementLinkId());
    instance.setBuildings(dbInstance.getBuildings());
    instance.setEnrollment(dbInstance.getEnrollment());
    instance.setPopulation(dbInstance.getPopulation());
    instance.setWorkstations(dbInstance.getWorkstations());
    instance.setCommissionCode(dbInstance.getCommissionCode());
    instance.setDeleteReasonCode(instance.getDeleteReasonCode());
    instance.setOrgPath(dbInstance.getOrgPath());
    instance.setNote(dbInstance.getNote());
    instance.setCreatedDatetime(dbInstance.getCreatedDatetime());
    instance.setStatus(dbInstance.getStatus());

    return instance;
  }