示例#1
0
 public void add(Comment comment) {
   commentDao.add(comment);
 }
示例#2
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);
 }