MCPcopy Index your code
hub / github.com/castello/spring_basic / remove

Method remove

ch4/CommentServiceImpl.java:29–39  ·  view source on GitHub ↗
(Integer cno, Integer bno, String commenter)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected