@Test @Sql(scripts = { "/sql/clearChartOfAccount.sql" }) @Sql(scripts = { "/sql/insertChartOfAccountData.sql" }) @Sql(scripts = { "/sql/clearAccountDetailType.sql" }) @Sql(scripts = { "/sql/insertAccountDetailType.sql" }) @Sql(scripts = { "/sql/clearChartOfAccountDetail.sql", "/sql/insertChartOfAccountDetail.sql" }) public void testUpdate() { ChartOfAccountDetailEntity chartOfAccountDetailEntity = getChartOfAccountDetailEntity(); ChartOfAccountDetailEntity actualResult = chartOfAccountDetailJdbcRepository .update(chartOfAccountDetailEntity); List<Map<String, Object>> result = namedParameterJdbcTemplate.query( "SELECT * FROM egf_chartofaccountdetail order by id asc", new ChartOfAccountDetailResultExtractor()); assertThat(result.get(0).get("id")).isEqualTo("1"); assertThat(result.get(0).get("chartofaccountid")).isEqualTo("1"); assertThat(result.get(0).get("accountdetailtypeid")).isEqualTo("1"); }
public ChartOfAccountDetailEntity update(ChartOfAccountDetailEntity entity) { super.update(entity); return entity; }
ChartOfAccountDetailJdbcRepository extends JdbcRepository { public ChartOfAccountDetailEntity update(ChartOfAccountDetailEntity entity) { super.update(entity); return entity; } }
ChartOfAccountDetailJdbcRepository extends JdbcRepository { public ChartOfAccountDetailEntity update(ChartOfAccountDetailEntity entity) { super.update(entity); return entity; } ChartOfAccountDetailJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate,
            AccountDetailTypeJdbcRepository accountDetailTypeJdbcRepository); }
ChartOfAccountDetailJdbcRepository extends JdbcRepository { public ChartOfAccountDetailEntity update(ChartOfAccountDetailEntity entity) { super.update(entity); return entity; } ChartOfAccountDetailJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate,
            AccountDetailTypeJdbcRepository accountDetailTypeJdbcRepository); ChartOfAccountDetailEntity create(ChartOfAccountDetailEntity entity); ChartOfAccountDetailEntity update(ChartOfAccountDetailEntity entity); Pagination<ChartOfAccountDetail> search(ChartOfAccountDetailSearch domain); ChartOfAccountDetailEntity findById(ChartOfAccountDetailEntity entity); }
ChartOfAccountDetailJdbcRepository extends JdbcRepository { public ChartOfAccountDetailEntity update(ChartOfAccountDetailEntity entity) { super.update(entity); return entity; } ChartOfAccountDetailJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate,
            AccountDetailTypeJdbcRepository accountDetailTypeJdbcRepository); ChartOfAccountDetailEntity create(ChartOfAccountDetailEntity entity); ChartOfAccountDetailEntity update(ChartOfAccountDetailEntity entity); Pagination<ChartOfAccountDetail> search(ChartOfAccountDetailSearch domain); ChartOfAccountDetailEntity findById(ChartOfAccountDetailEntity entity);  }