@Test public void test_to_search_contract() { SurrenderReasonSearchContract expectedSearchContract = surrenderReasonMapper.toSearchContract(searchDomain()); assertEquals(expectedSearchContract.getId(), searchContract().getId()); assertEquals(expectedSearchContract.getDescription(), searchContract().getDescription()); assertEquals(expectedSearchContract.getName(), searchContract().getName()); assertEquals(expectedSearchContract.getCreatedBy().getId(), searchContract().getCreatedBy().getId()); assertEquals(expectedSearchContract.getLastModifiedBy().getId(), searchContract().getLastModifiedBy().getId()); assertEquals(expectedSearchContract.getTenantId(), searchContract().getTenantId()); assertEquals(expectedSearchContract.getPageSize(), searchContract().getPageSize()); assertEquals(expectedSearchContract.getOffset(), searchContract().getOffset()); }
public SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch) { SurrenderReasonSearchContract contract = new SurrenderReasonSearchContract(); contract.setId(surrenderReasonSearch.getId()); contract.setName(surrenderReasonSearch.getName()); contract.setDescription(surrenderReasonSearch.getDescription()); contract.setCreatedBy(surrenderReasonSearch.getCreatedBy()); contract.setCreatedDate(surrenderReasonSearch.getCreatedDate()); contract.setLastModifiedBy(surrenderReasonSearch.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReasonSearch.getLastModifiedDate()); contract.setTenantId(surrenderReasonSearch.getTenantId()); contract.setPageSize(surrenderReasonSearch.getPageSize()); contract.setOffset(surrenderReasonSearch.getOffset()); contract.setSortBy(surrenderReasonSearch.getSortBy()); contract.setIds(surrenderReasonSearch.getIds()); return contract; }
SurrenderReasonMapper { public SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch) { SurrenderReasonSearchContract contract = new SurrenderReasonSearchContract(); contract.setId(surrenderReasonSearch.getId()); contract.setName(surrenderReasonSearch.getName()); contract.setDescription(surrenderReasonSearch.getDescription()); contract.setCreatedBy(surrenderReasonSearch.getCreatedBy()); contract.setCreatedDate(surrenderReasonSearch.getCreatedDate()); contract.setLastModifiedBy(surrenderReasonSearch.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReasonSearch.getLastModifiedDate()); contract.setTenantId(surrenderReasonSearch.getTenantId()); contract.setPageSize(surrenderReasonSearch.getPageSize()); contract.setOffset(surrenderReasonSearch.getOffset()); contract.setSortBy(surrenderReasonSearch.getSortBy()); contract.setIds(surrenderReasonSearch.getIds()); return contract; } }
SurrenderReasonMapper { public SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch) { SurrenderReasonSearchContract contract = new SurrenderReasonSearchContract(); contract.setId(surrenderReasonSearch.getId()); contract.setName(surrenderReasonSearch.getName()); contract.setDescription(surrenderReasonSearch.getDescription()); contract.setCreatedBy(surrenderReasonSearch.getCreatedBy()); contract.setCreatedDate(surrenderReasonSearch.getCreatedDate()); contract.setLastModifiedBy(surrenderReasonSearch.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReasonSearch.getLastModifiedDate()); contract.setTenantId(surrenderReasonSearch.getTenantId()); contract.setPageSize(surrenderReasonSearch.getPageSize()); contract.setOffset(surrenderReasonSearch.getOffset()); contract.setSortBy(surrenderReasonSearch.getSortBy()); contract.setIds(surrenderReasonSearch.getIds()); return contract; }  }
SurrenderReasonMapper { public SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch) { SurrenderReasonSearchContract contract = new SurrenderReasonSearchContract(); contract.setId(surrenderReasonSearch.getId()); contract.setName(surrenderReasonSearch.getName()); contract.setDescription(surrenderReasonSearch.getDescription()); contract.setCreatedBy(surrenderReasonSearch.getCreatedBy()); contract.setCreatedDate(surrenderReasonSearch.getCreatedDate()); contract.setLastModifiedBy(surrenderReasonSearch.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReasonSearch.getLastModifiedDate()); contract.setTenantId(surrenderReasonSearch.getTenantId()); contract.setPageSize(surrenderReasonSearch.getPageSize()); contract.setOffset(surrenderReasonSearch.getOffset()); contract.setSortBy(surrenderReasonSearch.getSortBy()); contract.setIds(surrenderReasonSearch.getIds()); return contract; }  SurrenderReason toDomain(SurrenderReasonContract contract); SurrenderReasonContract toContract(SurrenderReason surrenderReason); SurrenderReasonSearch toSearchDomain(SurrenderReasonSearchContract contract); SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch); }
SurrenderReasonMapper { public SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch) { SurrenderReasonSearchContract contract = new SurrenderReasonSearchContract(); contract.setId(surrenderReasonSearch.getId()); contract.setName(surrenderReasonSearch.getName()); contract.setDescription(surrenderReasonSearch.getDescription()); contract.setCreatedBy(surrenderReasonSearch.getCreatedBy()); contract.setCreatedDate(surrenderReasonSearch.getCreatedDate()); contract.setLastModifiedBy(surrenderReasonSearch.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReasonSearch.getLastModifiedDate()); contract.setTenantId(surrenderReasonSearch.getTenantId()); contract.setPageSize(surrenderReasonSearch.getPageSize()); contract.setOffset(surrenderReasonSearch.getOffset()); contract.setSortBy(surrenderReasonSearch.getSortBy()); contract.setIds(surrenderReasonSearch.getIds()); return contract; }  SurrenderReason toDomain(SurrenderReasonContract contract); SurrenderReasonContract toContract(SurrenderReason surrenderReason); SurrenderReasonSearch toSearchDomain(SurrenderReasonSearchContract contract); SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch);  }