Exemplo n.º 1
0
 public void add(Comment comment) {
   commentDao.add(comment);
 }
Exemplo n.º 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);
 }