@Test @Sql(scripts = { "/sql/budgetreappropriation/clearBudgetReAppropriation.sql", "/sql/budgetreappropriation/insertBudgetReAppropriationData.sql" }) public void test_delete() { BudgetReAppropriationEntity budgetReAppropriation = BudgetReAppropriationEntity.builder().budgetDetailId("1") .id("1").build(); budgetReAppropriation.setTenantId("default"); BudgetReAppropriationEntity actualResult = budgetReAppropriationJdbcRepository.delete(budgetReAppropriation); List<Map<String, Object>> result = namedParameterJdbcTemplate.query("SELECT * FROM egf_budgetReAppropriation", new BudgetReAppropriationResultExtractor()); assertTrue("Result set length is zero", result.size() == 0); }
public BudgetReAppropriationEntity delete(final BudgetReAppropriationEntity entity) { super.delete(entity.TABLE_NAME, entity.getId()); return entity; }
BudgetReAppropriationJdbcRepository extends JdbcRepository { public BudgetReAppropriationEntity delete(final BudgetReAppropriationEntity entity) { super.delete(entity.TABLE_NAME, entity.getId()); return entity; } }
BudgetReAppropriationJdbcRepository extends JdbcRepository { public BudgetReAppropriationEntity delete(final BudgetReAppropriationEntity entity) { super.delete(entity.TABLE_NAME, entity.getId()); return entity; } BudgetReAppropriationJdbcRepository(final NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); }
BudgetReAppropriationJdbcRepository extends JdbcRepository { public BudgetReAppropriationEntity delete(final BudgetReAppropriationEntity entity) { super.delete(entity.TABLE_NAME, entity.getId()); return entity; } BudgetReAppropriationJdbcRepository(final NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); BudgetReAppropriationEntity create(final BudgetReAppropriationEntity entity); BudgetReAppropriationEntity update(final BudgetReAppropriationEntity entity); BudgetReAppropriationEntity delete(final BudgetReAppropriationEntity entity); Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch domain); BudgetReAppropriationEntity findById(final BudgetReAppropriationEntity entity); }
BudgetReAppropriationJdbcRepository extends JdbcRepository { public BudgetReAppropriationEntity delete(final BudgetReAppropriationEntity entity) { super.delete(entity.TABLE_NAME, entity.getId()); return entity; } BudgetReAppropriationJdbcRepository(final NamedParameterJdbcTemplate namedParameterJdbcTemplate, JdbcTemplate jdbcTemplate); BudgetReAppropriationEntity create(final BudgetReAppropriationEntity entity); BudgetReAppropriationEntity update(final BudgetReAppropriationEntity entity); BudgetReAppropriationEntity delete(final BudgetReAppropriationEntity entity); Pagination<BudgetReAppropriation> search(final BudgetReAppropriationSearch domain); BudgetReAppropriationEntity findById(final BudgetReAppropriationEntity entity);  }