@Test @Sql(scripts = { "/sql/instrumentaccountcode/clearInstrumentAccountCode.sql", "/sql/instrumentaccountcode/insertInstrumentAccountCodeData.sql" }) public void test_delete() { InstrumentAccountCodeEntity instrumentAccountCode = InstrumentAccountCodeEntity.builder().id("1").instrumentTypeId("name") .accountCodeId("glcode").build(); instrumentAccountCode.setTenantId("default"); InstrumentAccountCodeEntity actualResult = instrumentAccountCodeJdbcRepository.delete(instrumentAccountCode); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egf_instrumentAccountCode", new InstrumentAccountCodeResultExtractor()); assertTrue("Result set length is zero", result.size() == 0); }
public InstrumentAccountCodeEntity delete(InstrumentAccountCodeEntity entity) { super.delete(InstrumentAccountCodeEntity.TABLE_NAME, entity.getId()); return entity; }
InstrumentAccountCodeJdbcRepository extends JdbcRepository { public InstrumentAccountCodeEntity delete(InstrumentAccountCodeEntity entity) { super.delete(InstrumentAccountCodeEntity.TABLE_NAME, entity.getId()); return entity; } }
InstrumentAccountCodeJdbcRepository extends JdbcRepository { public InstrumentAccountCodeEntity delete(InstrumentAccountCodeEntity entity) { super.delete(InstrumentAccountCodeEntity.TABLE_NAME, entity.getId()); return entity; } InstrumentAccountCodeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); }
InstrumentAccountCodeJdbcRepository extends JdbcRepository { public InstrumentAccountCodeEntity delete(InstrumentAccountCodeEntity entity) { super.delete(InstrumentAccountCodeEntity.TABLE_NAME, entity.getId()); return entity; } InstrumentAccountCodeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); InstrumentAccountCodeEntity create(InstrumentAccountCodeEntity entity); InstrumentAccountCodeEntity update(InstrumentAccountCodeEntity entity); InstrumentAccountCodeEntity delete(InstrumentAccountCodeEntity entity); Pagination<InstrumentAccountCode> search(InstrumentAccountCodeSearch domain); InstrumentAccountCodeEntity findById(InstrumentAccountCodeEntity entity); }
InstrumentAccountCodeJdbcRepository extends JdbcRepository { public InstrumentAccountCodeEntity delete(InstrumentAccountCodeEntity entity) { super.delete(InstrumentAccountCodeEntity.TABLE_NAME, entity.getId()); return entity; } InstrumentAccountCodeJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); InstrumentAccountCodeEntity create(InstrumentAccountCodeEntity entity); InstrumentAccountCodeEntity update(InstrumentAccountCodeEntity entity); InstrumentAccountCodeEntity delete(InstrumentAccountCodeEntity entity); Pagination<InstrumentAccountCode> search(InstrumentAccountCodeSearch domain); InstrumentAccountCodeEntity findById(InstrumentAccountCodeEntity entity);  }