Examples of dontPoseAsTransientObjectAnymore()


Examples of org.libreplan.business.resources.entities.Worker.dontPoseAsTransientObjectAnymore()

                        worker.setFirstName("Name " + UUID.randomUUID());
                        worker.setSurname("Surname " + UUID.randomUUID());
                        worker.setNif("ID " + UUID.randomUUID());
                        worker.setUser(user);
                        workerDAO.save(worker);
                        worker.dontPoseAsTransientObjectAnymore();

                        return worker;
                    }
                });
    }
View Full Code Here

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

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

        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

Examples of org.libreplan.business.users.entities.Profile.dontPoseAsTransientObjectAnymore()

    public void loadRequiredData() {
        if (profileDAO.list(Profile.class).isEmpty()) {
            for (PredefinedProfiles each : PredefinedProfiles.values()) {
                Profile profile = each.createProfile();
                profileDAO.save(profile);
                profile.dontPoseAsTransientObjectAnymore();
            }
        }
    }

}
View Full Code Here

Examples of org.libreplan.business.users.entities.User.dontPoseAsTransientObjectAnymore()

                    @Override
                    public User execute() {
                        User user = User.create("login" + UUID.randomUUID(),
                                "password", "");
                        userDAO.save(user);
                        user.dontPoseAsTransientObjectAnymore();
                        return user;
                    }
                });
    }
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.