diff --git a/src/main/java/com/example/naverrestaurant/db/H2DbRepositoryAbstract.java b/src/main/java/com/example/naverrestaurant/db/H2DbRepositoryAbstract.java index 9110e09..8d53664 100644 --- a/src/main/java/com/example/naverrestaurant/db/H2DbRepositoryAbstract.java +++ b/src/main/java/com/example/naverrestaurant/db/H2DbRepositoryAbstract.java @@ -55,7 +55,10 @@ public T save(T entity) { @Override public void deleteById(int index) { - + String deleteByIdQuery = "delete from restaurant where index=?"; + int deleteByIdParam = index; + int result = this.jdbcTemplate.update(deleteByIdQuery, deleteByIdParam); + System.out.println("delete : "+result); } @Override