@Test @Sql(scripts = { "/sql/clearChartOfAccount.sql", "/sql/insertChartOfAccountData.sql" }) public void testUpdate() { ChartOfAccountEntity chartOfAccountEntity = getChartOfAccountEntity(); ChartOfAccountEntity actualResult =chartOfAccountJdbcRepository.update(chartOfAccountEntity); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egf_chartofaccount", new ChartOfAccountResultExtractor()); Map<String, Object> row = result.get(0); assertThat(row.get("name")).isEqualTo(actualResult.getName()); assertThat(row.get("glcode")).isEqualTo(actualResult.getGlcode()); }
public ChartOfAccountEntity update(ChartOfAccountEntity entity) { super.update(entity); return entity; }
ChartOfAccountJdbcRepository extends JdbcRepository { public ChartOfAccountEntity update(ChartOfAccountEntity entity) { super.update(entity); return entity; } }
ChartOfAccountJdbcRepository extends JdbcRepository { public ChartOfAccountEntity update(ChartOfAccountEntity entity) { super.update(entity); return entity; } ChartOfAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate,
            ChartOfAccountDetailJdbcRepository chartOfAccountDetailJdbcRepository); }
ChartOfAccountJdbcRepository extends JdbcRepository { public ChartOfAccountEntity update(ChartOfAccountEntity entity) { super.update(entity); return entity; } ChartOfAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate,
            ChartOfAccountDetailJdbcRepository chartOfAccountDetailJdbcRepository); ChartOfAccountEntity create(ChartOfAccountEntity entity); ChartOfAccountEntity update(ChartOfAccountEntity entity); Pagination<ChartOfAccount> search(ChartOfAccountSearch domain); ChartOfAccountEntity findById(ChartOfAccountEntity entity); }
ChartOfAccountJdbcRepository extends JdbcRepository { public ChartOfAccountEntity update(ChartOfAccountEntity entity) { super.update(entity); return entity; } ChartOfAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate,
            ChartOfAccountDetailJdbcRepository chartOfAccountDetailJdbcRepository); ChartOfAccountEntity create(ChartOfAccountEntity entity); ChartOfAccountEntity update(ChartOfAccountEntity entity); Pagination<ChartOfAccount> search(ChartOfAccountSearch domain); ChartOfAccountEntity findById(ChartOfAccountEntity entity);  }