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