@Test @Sql(scripts = { "/sql/clearBankAccount.sql" }) public void testCreate() { BankAccountEntity bankAccountEntity = getBankAccountEntity(); BankAccountEntity actualResult = bankAccountJdbcRepository.create(bankAccountEntity); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egf_bankaccount", new BankAccountResultExtractor()); Map<String, Object> row = result.get(0); assertThat(row.get("accountNumber")).isEqualTo(actualResult.getAccountNumber()); }
public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } BankAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } BankAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankAccountEntity create(BankAccountEntity entity); BankAccountEntity update(BankAccountEntity entity); Pagination<BankAccount> search(BankAccountSearch domain); BankAccountEntity findById(BankAccountEntity entity); }
BankAccountJdbcRepository extends JdbcRepository { public BankAccountEntity create(BankAccountEntity entity) { super.create(entity); return entity; } BankAccountJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate); BankAccountEntity create(BankAccountEntity entity); BankAccountEntity update(BankAccountEntity entity); Pagination<BankAccount> search(BankAccountSearch domain); BankAccountEntity findById(BankAccountEntity entity);  }