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