Esempio n. 1
0
 public void add(Comment comment) {
   commentDao.add(comment);
 }
Esempio n. 2
0
 public void delete(Integer id) {
   commentDao.delete(id);
 }
Esempio n. 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);
 }
Esempio n. 4
0
 public Comment findById(int id) {
   return commentDao.findById(id);
 }