Package org.libreplan.business.orders.entities

Examples of org.libreplan.business.orders.entities.Order.dontPoseAsTransientObjectAnymore()


    private Order givenValidOrderWithValidOrderLinesAlreadyStored() {
        Order order = givenOrder();
        jiraOrderElementSynchronizer.syncOrderElementsWithJiraIssues(issues,
                order);
        order.dontPoseAsTransientObjectAnymore();
        orderDAO.saveWithoutValidating(order);
        orderDAO.flush();
        try {
            return orderDAO.find(order.getId());
        } catch (InstanceNotFoundException e) {
View Full Code Here



    private Order givenValidOrderWithValidOrderLinesAlreadyStored() {
        Order order = givenOrder();
        jiraOrderElementSynchronizer.syncOrderElementsWithJiraIssues(issues, order);
        order.dontPoseAsTransientObjectAnymore();
        orderDAO.saveWithoutValidating(order);
        orderDAO.flush();
        try {
            return orderDAO.find(order.getId());
        } catch (InstanceNotFoundException e) {
View Full Code Here

        orderLine.setCode(UUID.randomUUID().toString());
        orderLine.setName(randomize("order-line-name"));
        orderDAO.save(order);
        orderDAO.flush();
        sessionFactory.getCurrentSession().evict(order);
        order.dontPoseAsTransientObjectAnymore();

        return order;
    }

    private static String randomize(String name) {
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.