Example #1
0
 @Transactional(propagation = Propagation.REQUIRED)
 public List<Menu> findAll() {
   return menuDao.findAll();
 }
Example #2
0
 @Transactional(propagation = Propagation.REQUIRED)
 public Menu getByName(String name) {
   return menuDao.getByName(name);
 }
Example #3
0
 @Transactional(propagation = Propagation.REQUIRED)
 public void deleteMenu(Menu menu) {
   menuDao.remove(menu);
 }
Example #4
0
 @Transactional(propagation = Propagation.REQUIRED)
 public void addDish(Dish dish, Menu targetMenu) {
   menuDao.addDish(dish, targetMenu);
 }
Example #5
0
 @Transactional(propagation = Propagation.REQUIRED)
 public void createMenu(Menu menu) {
   menuDao.add(menu);
 }