(Integer cno, Integer bno, String commenter)
| 27 | } |
| 28 | |
| 29 | @Override |
| 30 | |
| 31 | @Transactional(rollbackFor = Exception.class) |
| 32 | public int remove(Integer cno, Integer bno, String commenter) throws Exception { |
| 33 | int rowCnt = boardDao.updateCommentCnt(bno, -1); |
| 34 | System.out.println("updateCommentCnt - rowCnt = " + rowCnt); |
| 35 | // throw new Exception("test"); |
| 36 | rowCnt = commentDao.delete(cno, commenter); |
| 37 | System.out.println("rowCnt = " + rowCnt); |
| 38 | return rowCnt; |
| 39 | } |
| 40 | |
| 41 | @Override |
| 42 | @Transactional(rollbackFor = Exception.class) |