Package com.sandrini.sandelivery.model

Examples of com.sandrini.sandelivery.model.Menu


  public List<Menu> getAllMenus() {
    return getSession().createQuery("from Menu order by name").list();
  }

  public void deleteMenu(Long menuId) {
    Menu menu = getMenu(menuId);
    if (menu != null) {
      getSession().delete(menu);
    }
  }
View Full Code Here


      return null;
    }
  }

  public void createMenu(String name, String url) {
    Menu menu = new Menu();
    menu.setName(name);
    menu.setUrl(url);
    menuDAO.createMenu(menu);
  }
View Full Code Here

TOP

Related Classes of com.sandrini.sandelivery.model.Menu

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.