@Override public Product saveOrUpdate(String name) { Product product = new Product(name); return productDao.saveOrUpdate(product); }
@Override public Product findByName(String name) { return (Product) productDao.findByName(name); }
@Override public List<Product> list() { return productDao.findAll(); }
@Override public Product findOne(Long id) { return (Product) productDao.findOne(id); }