Package org.libreplan.business.scenarios.entities

Examples of org.libreplan.business.scenarios.entities.Scenario.dontPoseAsTransientObjectAnymore()


        Scenario scenario = predefinedScenario.createScenario();
        for (Order each : orderDAO.getOrders()) {
            scenario.addOrder(each);
        }
        scenarioDAO.save(scenario);
        scenario.dontPoseAsTransientObjectAnymore();
        return scenario;
    }

    @Override
    public Scenario getMain() {
View Full Code Here


        scenario.setName("scenario-name-" + UUID.randomUUID());

        scenarioDAO.save(scenario);
        scenarioDAO.flush();
        sessionFactory.getCurrentSession().evict(scenario);
        scenario.dontPoseAsTransientObjectAnymore();

        return scenario;
    }

    private Scenario givenStoredScenario(Scenario predecessor) {
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.