@Test @Sql(scripts = { "/sql/surrenderreason/clearSurrenderReason.sql", "/sql/surrenderreason/insertSurrenderReasonData.sql" }) public void test_delete() { SurrenderReasonEntity surrenderReason = SurrenderReasonEntity.builder().id("1").name("name") .description("description").build(); surrenderReason.setTenantId("default"); SurrenderReasonEntity actualResult = surrenderReasonJdbcRepository.delete(surrenderReason); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egf_surrenderReason", new SurrenderReasonResultExtractor()); assertTrue("Result set length is zero", result.size() == 0); }
public SurrenderReasonEntity delete(SurrenderReasonEntity entity) { super.delete(SurrenderReasonEntity.TABLE_NAME, entity.getId()); return entity; }
SurrenderReasonJdbcRepository extends JdbcRepository { public SurrenderReasonEntity delete(SurrenderReasonEntity entity) { super.delete(SurrenderReasonEntity.TABLE_NAME, entity.getId()); return entity; } }
SurrenderReasonJdbcRepository extends JdbcRepository { public SurrenderReasonEntity delete(SurrenderReasonEntity entity) { super.delete(SurrenderReasonEntity.TABLE_NAME, entity.getId()); return entity; } SurrenderReasonJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); }
SurrenderReasonJdbcRepository extends JdbcRepository { public SurrenderReasonEntity delete(SurrenderReasonEntity entity) { super.delete(SurrenderReasonEntity.TABLE_NAME, entity.getId()); return entity; } SurrenderReasonJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); SurrenderReasonEntity create(SurrenderReasonEntity entity); SurrenderReasonEntity update(SurrenderReasonEntity entity); SurrenderReasonEntity delete(SurrenderReasonEntity entity); Pagination<SurrenderReason> search(SurrenderReasonSearch domain); SurrenderReasonEntity findById(SurrenderReasonEntity entity); }
SurrenderReasonJdbcRepository extends JdbcRepository { public SurrenderReasonEntity delete(SurrenderReasonEntity entity) { super.delete(SurrenderReasonEntity.TABLE_NAME, entity.getId()); return entity; } SurrenderReasonJdbcRepository(NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); SurrenderReasonEntity create(SurrenderReasonEntity entity); SurrenderReasonEntity update(SurrenderReasonEntity entity); SurrenderReasonEntity delete(SurrenderReasonEntity entity); Pagination<SurrenderReason> search(SurrenderReasonSearch domain); SurrenderReasonEntity findById(SurrenderReasonEntity entity);  }