@Test @Sql(scripts = { "/sql/clearBankBranch.sql", "/sql/insertBankBranch.sql" }) public void testUpdate() { BankBranchEntity bankBranchEntity = getBankBranchEntity(); BankBranchEntity actualResult = bankBranchJdbcRepository.update(bankBranchEntity); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egf_bankbranch", new BankBranchResultExtractor()); Map<String, Object> row = result.get(0); assertThat(row.get("name")).isEqualTo(actualResult.getName()); assertThat(row.get("code")).isEqualTo(actualResult.getCode()); }
public BankBranchEntity update(BankBranchEntity entity) { super.update(entity); return entity; }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity update(BankBranchEntity entity) { super.update(entity); return entity; } }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity update(BankBranchEntity entity) { super.update(entity); return entity; } BankBranchJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity update(BankBranchEntity entity) { super.update(entity); return entity; } BankBranchJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankBranchEntity create(BankBranchEntity entity); BankBranchEntity update(BankBranchEntity entity); Pagination<BankBranch> search(BankBranchSearch domain); BankBranchEntity findById(BankBranchEntity entity); }
BankBranchJdbcRepository extends JdbcRepository { public BankBranchEntity update(BankBranchEntity entity) { super.update(entity); return entity; } BankBranchJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankBranchEntity create(BankBranchEntity entity); BankBranchEntity update(BankBranchEntity entity); Pagination<BankBranch> search(BankBranchSearch domain); BankBranchEntity findById(BankBranchEntity entity);  }