@Test public void test_to_contract() { SurrenderReasonContract expectedContract = surrenderReasonMapper.toContract(domain()); assertEquals(expectedContract.getId(), contract().getId()); assertEquals(expectedContract.getDescription(), contract().getDescription()); assertEquals(expectedContract.getName(), contract().getName()); assertEquals(expectedContract.getCreatedBy().getId(), contract().getCreatedBy().getId()); assertEquals(expectedContract.getLastModifiedBy().getId(), contract().getLastModifiedBy().getId()); assertEquals(expectedContract.getTenantId(), contract().getTenantId()); }
public SurrenderReasonContract toContract(SurrenderReason surrenderReason) { SurrenderReasonContract contract = new SurrenderReasonContract(); contract.setId(surrenderReason.getId()); contract.setName(surrenderReason.getName()); contract.setDescription(surrenderReason.getDescription()); contract.setCreatedBy(surrenderReason.getCreatedBy()); contract.setCreatedDate(surrenderReason.getCreatedDate()); contract.setLastModifiedBy(surrenderReason.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReason.getLastModifiedDate()); contract.setTenantId(surrenderReason.getTenantId()); return contract; }
SurrenderReasonMapper { public SurrenderReasonContract toContract(SurrenderReason surrenderReason) { SurrenderReasonContract contract = new SurrenderReasonContract(); contract.setId(surrenderReason.getId()); contract.setName(surrenderReason.getName()); contract.setDescription(surrenderReason.getDescription()); contract.setCreatedBy(surrenderReason.getCreatedBy()); contract.setCreatedDate(surrenderReason.getCreatedDate()); contract.setLastModifiedBy(surrenderReason.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReason.getLastModifiedDate()); contract.setTenantId(surrenderReason.getTenantId()); return contract; } }
SurrenderReasonMapper { public SurrenderReasonContract toContract(SurrenderReason surrenderReason) { SurrenderReasonContract contract = new SurrenderReasonContract(); contract.setId(surrenderReason.getId()); contract.setName(surrenderReason.getName()); contract.setDescription(surrenderReason.getDescription()); contract.setCreatedBy(surrenderReason.getCreatedBy()); contract.setCreatedDate(surrenderReason.getCreatedDate()); contract.setLastModifiedBy(surrenderReason.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReason.getLastModifiedDate()); contract.setTenantId(surrenderReason.getTenantId()); return contract; }  }
SurrenderReasonMapper { public SurrenderReasonContract toContract(SurrenderReason surrenderReason) { SurrenderReasonContract contract = new SurrenderReasonContract(); contract.setId(surrenderReason.getId()); contract.setName(surrenderReason.getName()); contract.setDescription(surrenderReason.getDescription()); contract.setCreatedBy(surrenderReason.getCreatedBy()); contract.setCreatedDate(surrenderReason.getCreatedDate()); contract.setLastModifiedBy(surrenderReason.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReason.getLastModifiedDate()); contract.setTenantId(surrenderReason.getTenantId()); return contract; }  SurrenderReason toDomain(SurrenderReasonContract contract); SurrenderReasonContract toContract(SurrenderReason surrenderReason); SurrenderReasonSearch toSearchDomain(SurrenderReasonSearchContract contract); SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch); }
SurrenderReasonMapper { public SurrenderReasonContract toContract(SurrenderReason surrenderReason) { SurrenderReasonContract contract = new SurrenderReasonContract(); contract.setId(surrenderReason.getId()); contract.setName(surrenderReason.getName()); contract.setDescription(surrenderReason.getDescription()); contract.setCreatedBy(surrenderReason.getCreatedBy()); contract.setCreatedDate(surrenderReason.getCreatedDate()); contract.setLastModifiedBy(surrenderReason.getLastModifiedBy()); contract.setLastModifiedDate(surrenderReason.getLastModifiedDate()); contract.setTenantId(surrenderReason.getTenantId()); return contract; }  SurrenderReason toDomain(SurrenderReasonContract contract); SurrenderReasonContract toContract(SurrenderReason surrenderReason); SurrenderReasonSearch toSearchDomain(SurrenderReasonSearchContract contract); SurrenderReasonSearchContract toSearchContract(SurrenderReasonSearch surrenderReasonSearch);  }