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