@Test public void test_to_search_contract() { final BudgetReAppropriationSearchContract expectedSearchContract = budgetDetailMapper .toSearchContract(searchDomain()); assertEquals(expectedSearchContract.getId(), searchContract().getId()); assertEquals(expectedSearchContract.getBudgetDetail().getId(), searchContract().getBudgetDetail().getId()); assertEquals(expectedSearchContract.getAdditionAmount(), searchContract().getAdditionAmount()); assertEquals(expectedSearchContract.getDeductionAmount(), searchContract().getDeductionAmount()); assertEquals(expectedSearchContract.getOriginalAdditionAmount(), searchContract().getOriginalAdditionAmount()); assertEquals(expectedSearchContract.getOriginalDeductionAmount(), searchContract().getOriginalDeductionAmount()); assertEquals(expectedSearchContract.getAnticipatoryAmount(), searchContract().getAnticipatoryAmount()); assertEquals(expectedSearchContract.getStatus().getId(), searchContract().getStatus().getId()); assertEquals(expectedSearchContract.getCreatedBy().getId(), searchContract().getCreatedBy().getId()); assertEquals(expectedSearchContract.getLastModifiedBy().getId(), searchContract().getLastModifiedBy().getId()); assertEquals(expectedSearchContract.getTenantId(), searchContract().getTenantId()); }
public BudgetReAppropriationSearchContract toSearchContract( final BudgetReAppropriationSearch budgetReAppropriationSearch) { final BudgetReAppropriationSearchContract contract = new BudgetReAppropriationSearchContract(); contract.setId(budgetReAppropriationSearch.getId()); contract.setBudgetDetail(BudgetDetailContract.builder().id(budgetReAppropriationSearch.getBudgetDetail() != null ? budgetReAppropriationSearch.getBudgetDetail().getId() : null).build()); contract.setAdditionAmount(budgetReAppropriationSearch.getAdditionAmount()); contract.setDeductionAmount(budgetReAppropriationSearch.getDeductionAmount()); contract.setOriginalAdditionAmount(budgetReAppropriationSearch.getOriginalAdditionAmount()); contract.setOriginalDeductionAmount(budgetReAppropriationSearch.getOriginalDeductionAmount()); contract.setAnticipatoryAmount(budgetReAppropriationSearch.getAnticipatoryAmount()); contract.setStatus(FinancialStatusContract.builder().id(budgetReAppropriationSearch.getStatus() != null ? budgetReAppropriationSearch.getStatus().getId() : null).build()); contract.setAsOnDate(budgetReAppropriationSearch.getAsOnDate()); contract.setCreatedBy(budgetReAppropriationSearch.getCreatedBy()); contract.setCreatedDate(budgetReAppropriationSearch.getCreatedDate()); contract.setLastModifiedBy(budgetReAppropriationSearch.getLastModifiedBy()); contract.setLastModifiedDate(budgetReAppropriationSearch.getLastModifiedDate()); contract.setTenantId(budgetReAppropriationSearch.getTenantId()); contract.setPageSize(budgetReAppropriationSearch.getPageSize()); contract.setOffset(budgetReAppropriationSearch.getOffset()); return contract; }
BudgetReAppropriationMapper { public BudgetReAppropriationSearchContract toSearchContract( final BudgetReAppropriationSearch budgetReAppropriationSearch) { final BudgetReAppropriationSearchContract contract = new BudgetReAppropriationSearchContract(); contract.setId(budgetReAppropriationSearch.getId()); contract.setBudgetDetail(BudgetDetailContract.builder().id(budgetReAppropriationSearch.getBudgetDetail() != null ? budgetReAppropriationSearch.getBudgetDetail().getId() : null).build()); contract.setAdditionAmount(budgetReAppropriationSearch.getAdditionAmount()); contract.setDeductionAmount(budgetReAppropriationSearch.getDeductionAmount()); contract.setOriginalAdditionAmount(budgetReAppropriationSearch.getOriginalAdditionAmount()); contract.setOriginalDeductionAmount(budgetReAppropriationSearch.getOriginalDeductionAmount()); contract.setAnticipatoryAmount(budgetReAppropriationSearch.getAnticipatoryAmount()); contract.setStatus(FinancialStatusContract.builder().id(budgetReAppropriationSearch.getStatus() != null ? budgetReAppropriationSearch.getStatus().getId() : null).build()); contract.setAsOnDate(budgetReAppropriationSearch.getAsOnDate()); contract.setCreatedBy(budgetReAppropriationSearch.getCreatedBy()); contract.setCreatedDate(budgetReAppropriationSearch.getCreatedDate()); contract.setLastModifiedBy(budgetReAppropriationSearch.getLastModifiedBy()); contract.setLastModifiedDate(budgetReAppropriationSearch.getLastModifiedDate()); contract.setTenantId(budgetReAppropriationSearch.getTenantId()); contract.setPageSize(budgetReAppropriationSearch.getPageSize()); contract.setOffset(budgetReAppropriationSearch.getOffset()); return contract; } }
BudgetReAppropriationMapper { public BudgetReAppropriationSearchContract toSearchContract( final BudgetReAppropriationSearch budgetReAppropriationSearch) { final BudgetReAppropriationSearchContract contract = new BudgetReAppropriationSearchContract(); contract.setId(budgetReAppropriationSearch.getId()); contract.setBudgetDetail(BudgetDetailContract.builder().id(budgetReAppropriationSearch.getBudgetDetail() != null ? budgetReAppropriationSearch.getBudgetDetail().getId() : null).build()); contract.setAdditionAmount(budgetReAppropriationSearch.getAdditionAmount()); contract.setDeductionAmount(budgetReAppropriationSearch.getDeductionAmount()); contract.setOriginalAdditionAmount(budgetReAppropriationSearch.getOriginalAdditionAmount()); contract.setOriginalDeductionAmount(budgetReAppropriationSearch.getOriginalDeductionAmount()); contract.setAnticipatoryAmount(budgetReAppropriationSearch.getAnticipatoryAmount()); contract.setStatus(FinancialStatusContract.builder().id(budgetReAppropriationSearch.getStatus() != null ? budgetReAppropriationSearch.getStatus().getId() : null).build()); contract.setAsOnDate(budgetReAppropriationSearch.getAsOnDate()); contract.setCreatedBy(budgetReAppropriationSearch.getCreatedBy()); contract.setCreatedDate(budgetReAppropriationSearch.getCreatedDate()); contract.setLastModifiedBy(budgetReAppropriationSearch.getLastModifiedBy()); contract.setLastModifiedDate(budgetReAppropriationSearch.getLastModifiedDate()); contract.setTenantId(budgetReAppropriationSearch.getTenantId()); contract.setPageSize(budgetReAppropriationSearch.getPageSize()); contract.setOffset(budgetReAppropriationSearch.getOffset()); return contract; }  }
BudgetReAppropriationMapper { public BudgetReAppropriationSearchContract toSearchContract( final BudgetReAppropriationSearch budgetReAppropriationSearch) { final BudgetReAppropriationSearchContract contract = new BudgetReAppropriationSearchContract(); contract.setId(budgetReAppropriationSearch.getId()); contract.setBudgetDetail(BudgetDetailContract.builder().id(budgetReAppropriationSearch.getBudgetDetail() != null ? budgetReAppropriationSearch.getBudgetDetail().getId() : null).build()); contract.setAdditionAmount(budgetReAppropriationSearch.getAdditionAmount()); contract.setDeductionAmount(budgetReAppropriationSearch.getDeductionAmount()); contract.setOriginalAdditionAmount(budgetReAppropriationSearch.getOriginalAdditionAmount()); contract.setOriginalDeductionAmount(budgetReAppropriationSearch.getOriginalDeductionAmount()); contract.setAnticipatoryAmount(budgetReAppropriationSearch.getAnticipatoryAmount()); contract.setStatus(FinancialStatusContract.builder().id(budgetReAppropriationSearch.getStatus() != null ? budgetReAppropriationSearch.getStatus().getId() : null).build()); contract.setAsOnDate(budgetReAppropriationSearch.getAsOnDate()); contract.setCreatedBy(budgetReAppropriationSearch.getCreatedBy()); contract.setCreatedDate(budgetReAppropriationSearch.getCreatedDate()); contract.setLastModifiedBy(budgetReAppropriationSearch.getLastModifiedBy()); contract.setLastModifiedDate(budgetReAppropriationSearch.getLastModifiedDate()); contract.setTenantId(budgetReAppropriationSearch.getTenantId()); contract.setPageSize(budgetReAppropriationSearch.getPageSize()); contract.setOffset(budgetReAppropriationSearch.getOffset()); return contract; }  BudgetReAppropriation toDomain(final BudgetReAppropriationContract contract); BudgetReAppropriationContract toContract(final BudgetReAppropriation budgetReAppropriation); BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract); BudgetReAppropriationSearchContract toSearchContract(
            final BudgetReAppropriationSearch budgetReAppropriationSearch); }
BudgetReAppropriationMapper { public BudgetReAppropriationSearchContract toSearchContract( final BudgetReAppropriationSearch budgetReAppropriationSearch) { final BudgetReAppropriationSearchContract contract = new BudgetReAppropriationSearchContract(); contract.setId(budgetReAppropriationSearch.getId()); contract.setBudgetDetail(BudgetDetailContract.builder().id(budgetReAppropriationSearch.getBudgetDetail() != null ? budgetReAppropriationSearch.getBudgetDetail().getId() : null).build()); contract.setAdditionAmount(budgetReAppropriationSearch.getAdditionAmount()); contract.setDeductionAmount(budgetReAppropriationSearch.getDeductionAmount()); contract.setOriginalAdditionAmount(budgetReAppropriationSearch.getOriginalAdditionAmount()); contract.setOriginalDeductionAmount(budgetReAppropriationSearch.getOriginalDeductionAmount()); contract.setAnticipatoryAmount(budgetReAppropriationSearch.getAnticipatoryAmount()); contract.setStatus(FinancialStatusContract.builder().id(budgetReAppropriationSearch.getStatus() != null ? budgetReAppropriationSearch.getStatus().getId() : null).build()); contract.setAsOnDate(budgetReAppropriationSearch.getAsOnDate()); contract.setCreatedBy(budgetReAppropriationSearch.getCreatedBy()); contract.setCreatedDate(budgetReAppropriationSearch.getCreatedDate()); contract.setLastModifiedBy(budgetReAppropriationSearch.getLastModifiedBy()); contract.setLastModifiedDate(budgetReAppropriationSearch.getLastModifiedDate()); contract.setTenantId(budgetReAppropriationSearch.getTenantId()); contract.setPageSize(budgetReAppropriationSearch.getPageSize()); contract.setOffset(budgetReAppropriationSearch.getOffset()); return contract; }  BudgetReAppropriation toDomain(final BudgetReAppropriationContract contract); BudgetReAppropriationContract toContract(final BudgetReAppropriation budgetReAppropriation); BudgetReAppropriationSearch toSearchDomain(final BudgetReAppropriationSearchContract contract); BudgetReAppropriationSearchContract toSearchContract(
            final BudgetReAppropriationSearch budgetReAppropriationSearch);  }