Package org.hoteia.qalingo.core.domain

Examples of org.hoteia.qalingo.core.domain.OrderNumber


        OrderCustomer mergedOrSavedOrderCustomer = null;
        try {
            Session session = (Session) em.getDelegate();
            String hql = "FROM OrderNumber";
            Query query = session.createQuery(hql);
            OrderNumber orderNumber = (OrderNumber) query.uniqueResult();
            Integer previousLastOrderNumber = orderNumber.getLastOrderNumber();
            Integer newLastOrderNumber = new Integer(previousLastOrderNumber.intValue() + 1);

            orderCustomer.setPrefixHashFolder(UUID.randomUUID().toString());
            orderCustomer.setOrderNum("" + newLastOrderNumber);
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.domain.OrderNumber

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.