Package com.softserve.academy.food.entity

Examples of com.softserve.academy.food.entity.OrderContents


        List<OrderContents> ordercontents = new ArrayList<OrderContents>();

        for (Map.Entry<Integer, Integer> item : dishIdsToQuantities.entrySet()) {
            Dish dish = dishDao.get(item.getKey());
            ordercontents.add(new OrderContents(dish, item.getValue(), order));
        }

        order.setSpec(ordercontents);

        orderDao.add(order);
View Full Code Here


        dish = content.getDish().toModel();
        quantity = content.getQuantity();
    }

    public OrderContents toEntity() {
        return new OrderContents(this);
    }
View Full Code Here

TOP

Related Classes of com.softserve.academy.food.entity.OrderContents

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.