Examples of YFMenuMenuCategory


Examples of com.supinfo.youfood.entity.YFMenuMenuCategory

    @PersistenceContext
    protected EntityManager em;

    @Override
    public YFMenuMenuCategory add(YFMenuMenuCategory mmc) {
        YFMenuMenuCategory tmp = mmc;
//        System.out.println("======>" + tmp.getId());
        this.em.persist(tmp);
//        this.em.merge(tmp);
        return tmp;
    }
View Full Code Here

Examples of com.supinfo.youfood.entity.YFMenuMenuCategory

            String sMmcId = req.getParameter("mmcId");

            if (sMmcId != null) {
                Long mmcId = Long.parseLong(sMmcId);

                YFMenuMenuCategory mmc = this.mmcService.get(mmcId);

                req.setAttribute("dishes", mmc.getDishes());
                req.setAttribute("mcId", mmc.getMenuCategory().getId());

                req.setAttribute("content", "/table/dish/list.jsp");
                req.getRequestDispatcher("/table/template/template.jsp").forward(req, resp);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.