예제 #1
0
 public void add(Comment comment) {
   commentDao.add(comment);
 }
예제 #2
0
 public void delete(Integer id) {
   commentDao.delete(id);
 }
예제 #3
0
 public void add(String name, String text, Date comment_date, int product_id) {
   Product product = productDao.findById(product_id);
   Comment comment = new Comment(name, text, comment_date, product);
   commentDao.add(comment);
 }
예제 #4
0
 public Comment findById(int id) {
   return commentDao.findById(id);
 }