@Test public void test_to_search_domain() { InstrumentAccountCodeSearch expectedSearchDomain = instrumentAccountCodeMapper.toSearchDomain(searchContract()); assertEquals(expectedSearchDomain.getId(), searchDomain().getId()); assertEquals(expectedSearchDomain.getInstrumentType().getId(), searchDomain().getInstrumentType().getId()); assertEquals(expectedSearchDomain.getAccountCode().getId(), searchDomain().getAccountCode().getId()); 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 InstrumentAccountCodeSearch toSearchDomain(InstrumentAccountCodeSearchContract contract) { InstrumentAccountCodeSearch instrumentAccountCodeSearch = new InstrumentAccountCodeSearch(); instrumentAccountCodeSearch.setId(contract.getId()); if (contract.getInstrumentType() != null) instrumentAccountCodeSearch.setInstrumentType(typeMapper.toDomain(contract.getInstrumentType())); if (contract.getAccountCode() != null) instrumentAccountCodeSearch.setAccountCode(contract.getAccountCode()); instrumentAccountCodeSearch.setCreatedBy(contract.getCreatedBy()); instrumentAccountCodeSearch.setCreatedDate(contract.getCreatedDate()); instrumentAccountCodeSearch.setLastModifiedBy(contract.getLastModifiedBy()); instrumentAccountCodeSearch.setLastModifiedDate(contract.getLastModifiedDate()); instrumentAccountCodeSearch.setTenantId(contract.getTenantId()); instrumentAccountCodeSearch.setPageSize(contract.getPageSize()); instrumentAccountCodeSearch.setOffset(contract.getOffset()); instrumentAccountCodeSearch.setSortBy(contract.getSortBy()); instrumentAccountCodeSearch.setIds(contract.getIds()); return instrumentAccountCodeSearch; }
InstrumentAccountCodeMapper { public InstrumentAccountCodeSearch toSearchDomain(InstrumentAccountCodeSearchContract contract) { InstrumentAccountCodeSearch instrumentAccountCodeSearch = new InstrumentAccountCodeSearch(); instrumentAccountCodeSearch.setId(contract.getId()); if (contract.getInstrumentType() != null) instrumentAccountCodeSearch.setInstrumentType(typeMapper.toDomain(contract.getInstrumentType())); if (contract.getAccountCode() != null) instrumentAccountCodeSearch.setAccountCode(contract.getAccountCode()); instrumentAccountCodeSearch.setCreatedBy(contract.getCreatedBy()); instrumentAccountCodeSearch.setCreatedDate(contract.getCreatedDate()); instrumentAccountCodeSearch.setLastModifiedBy(contract.getLastModifiedBy()); instrumentAccountCodeSearch.setLastModifiedDate(contract.getLastModifiedDate()); instrumentAccountCodeSearch.setTenantId(contract.getTenantId()); instrumentAccountCodeSearch.setPageSize(contract.getPageSize()); instrumentAccountCodeSearch.setOffset(contract.getOffset()); instrumentAccountCodeSearch.setSortBy(contract.getSortBy()); instrumentAccountCodeSearch.setIds(contract.getIds()); return instrumentAccountCodeSearch; } }
InstrumentAccountCodeMapper { public InstrumentAccountCodeSearch toSearchDomain(InstrumentAccountCodeSearchContract contract) { InstrumentAccountCodeSearch instrumentAccountCodeSearch = new InstrumentAccountCodeSearch(); instrumentAccountCodeSearch.setId(contract.getId()); if (contract.getInstrumentType() != null) instrumentAccountCodeSearch.setInstrumentType(typeMapper.toDomain(contract.getInstrumentType())); if (contract.getAccountCode() != null) instrumentAccountCodeSearch.setAccountCode(contract.getAccountCode()); instrumentAccountCodeSearch.setCreatedBy(contract.getCreatedBy()); instrumentAccountCodeSearch.setCreatedDate(contract.getCreatedDate()); instrumentAccountCodeSearch.setLastModifiedBy(contract.getLastModifiedBy()); instrumentAccountCodeSearch.setLastModifiedDate(contract.getLastModifiedDate()); instrumentAccountCodeSearch.setTenantId(contract.getTenantId()); instrumentAccountCodeSearch.setPageSize(contract.getPageSize()); instrumentAccountCodeSearch.setOffset(contract.getOffset()); instrumentAccountCodeSearch.setSortBy(contract.getSortBy()); instrumentAccountCodeSearch.setIds(contract.getIds()); return instrumentAccountCodeSearch; }  }
InstrumentAccountCodeMapper { public InstrumentAccountCodeSearch toSearchDomain(InstrumentAccountCodeSearchContract contract) { InstrumentAccountCodeSearch instrumentAccountCodeSearch = new InstrumentAccountCodeSearch(); instrumentAccountCodeSearch.setId(contract.getId()); if (contract.getInstrumentType() != null) instrumentAccountCodeSearch.setInstrumentType(typeMapper.toDomain(contract.getInstrumentType())); if (contract.getAccountCode() != null) instrumentAccountCodeSearch.setAccountCode(contract.getAccountCode()); instrumentAccountCodeSearch.setCreatedBy(contract.getCreatedBy()); instrumentAccountCodeSearch.setCreatedDate(contract.getCreatedDate()); instrumentAccountCodeSearch.setLastModifiedBy(contract.getLastModifiedBy()); instrumentAccountCodeSearch.setLastModifiedDate(contract.getLastModifiedDate()); instrumentAccountCodeSearch.setTenantId(contract.getTenantId()); instrumentAccountCodeSearch.setPageSize(contract.getPageSize()); instrumentAccountCodeSearch.setOffset(contract.getOffset()); instrumentAccountCodeSearch.setSortBy(contract.getSortBy()); instrumentAccountCodeSearch.setIds(contract.getIds()); return instrumentAccountCodeSearch; }  InstrumentAccountCode toDomain(InstrumentAccountCodeContract contract); InstrumentAccountCodeContract toContract(InstrumentAccountCode instrumentAccountCode); InstrumentAccountCodeSearch toSearchDomain(InstrumentAccountCodeSearchContract contract); InstrumentAccountCodeSearchContract toSearchContract(
            InstrumentAccountCodeSearch instrumentAccountCodeSearch); }
InstrumentAccountCodeMapper { public InstrumentAccountCodeSearch toSearchDomain(InstrumentAccountCodeSearchContract contract) { InstrumentAccountCodeSearch instrumentAccountCodeSearch = new InstrumentAccountCodeSearch(); instrumentAccountCodeSearch.setId(contract.getId()); if (contract.getInstrumentType() != null) instrumentAccountCodeSearch.setInstrumentType(typeMapper.toDomain(contract.getInstrumentType())); if (contract.getAccountCode() != null) instrumentAccountCodeSearch.setAccountCode(contract.getAccountCode()); instrumentAccountCodeSearch.setCreatedBy(contract.getCreatedBy()); instrumentAccountCodeSearch.setCreatedDate(contract.getCreatedDate()); instrumentAccountCodeSearch.setLastModifiedBy(contract.getLastModifiedBy()); instrumentAccountCodeSearch.setLastModifiedDate(contract.getLastModifiedDate()); instrumentAccountCodeSearch.setTenantId(contract.getTenantId()); instrumentAccountCodeSearch.setPageSize(contract.getPageSize()); instrumentAccountCodeSearch.setOffset(contract.getOffset()); instrumentAccountCodeSearch.setSortBy(contract.getSortBy()); instrumentAccountCodeSearch.setIds(contract.getIds()); return instrumentAccountCodeSearch; }  InstrumentAccountCode toDomain(InstrumentAccountCodeContract contract); InstrumentAccountCodeContract toContract(InstrumentAccountCode instrumentAccountCode); InstrumentAccountCodeSearch toSearchDomain(InstrumentAccountCodeSearchContract contract); InstrumentAccountCodeSearchContract toSearchContract(
            InstrumentAccountCodeSearch instrumentAccountCodeSearch);  }