Examples of dontPoseAsTransientObjectAnymore()


Examples of org.libreplan.business.calendars.entities.BaseCalendar.dontPoseAsTransientObjectAnymore()

        calendar.setName("calendar-name");

        baseCalendarDAO.save(calendar);
        baseCalendarDAO.flush();
        sessionFactory.getCurrentSession().evict(calendar);
        calendar.dontPoseAsTransientObjectAnymore();

        return calendar;
    }

    @Test
View Full Code Here

Examples of org.libreplan.business.calendars.entities.BaseCalendar.dontPoseAsTransientObjectAnymore()

        session.getCurrentSession().evict(derivedCalendar);
        session.getCurrentSession().evict(derivedCalendar2);

        calendar.dontPoseAsTransientObjectAnymore();
        derivedCalendar.dontPoseAsTransientObjectAnymore();
        derivedCalendar2.dontPoseAsTransientObjectAnymore();

        List<BaseCalendar> children = baseCalendarDAO.findByParent(calendar);
        assertThat(children.size(), equalTo(2));
        assertTrue(children.get(0).getId().equals(derivedCalendar.getId())
                || children.get(0).getId().equals(derivedCalendar2.getId()));
View Full Code Here

Examples of org.libreplan.business.calendars.entities.CalendarExceptionType.dontPoseAsTransientObjectAnymore()

                .create("name", CalendarExceptionTypeColor.DEFAULT, false);

        calendarExceptionTypeDAO.save(calendarExceptionType);
        calendarExceptionTypeDAO.flush();
        sessionFactory.getCurrentSession().evict(calendarExceptionType);
        calendarExceptionType.dontPoseAsTransientObjectAnymore();

        return calendarExceptionType;
    }

    @Test
View Full Code Here

Examples of org.libreplan.business.costcategories.entities.TypeOfWorkHours.dontPoseAsTransientObjectAnymore()

        typeOfWorkHours.setDefaultPrice(BigDecimal.TEN);

        typeOfWorkHoursDAO.save(typeOfWorkHours);
        typeOfWorkHoursDAO.flush();
        sessionFactory.getCurrentSession().evict(typeOfWorkHours);
        typeOfWorkHours.dontPoseAsTransientObjectAnymore();
    }

    @Test
    @Transactional
    public void testAddAndGetCostCategories() {
View Full Code Here

Examples of org.libreplan.business.costcategories.entities.TypeOfWorkHours.dontPoseAsTransientObjectAnymore()

                sessionFactory.getCurrentSession().evict(typeOfWorkHours);
                return null;
            }
        });

        typeOfWorkHours.dontPoseAsTransientObjectAnymore();

        // Update the previous type of work hours
        TypeOfWorkHoursDTO cc2 = new TypeOfWorkHoursDTO(cc1.code, "updateCC1",
                false, new BigDecimal(100));
View Full Code Here

Examples of org.libreplan.business.externalcompanies.entities.ExternalCompany.dontPoseAsTransientObjectAnymore()

        externalCompanyDAO.save(externalCompany);
        externalCompanyDAO.flush();
        sessionFactory.getCurrentSession().evict(externalCompany);

        externalCompany.dontPoseAsTransientObjectAnymore();

        return externalCompany;
    }

    @Test
View Full Code Here

Examples of org.libreplan.business.externalcompanies.entities.ExternalCompany.dontPoseAsTransientObjectAnymore()

        externalCompanyDAO.save(externalCompany);
        externalCompanyDAO.flush();
        sessionFactory.getCurrentSession().evict(externalCompany);

        externalCompany.dontPoseAsTransientObjectAnymore();

        return externalCompany;
    }

    private ExternalCompany getSubcontractorExternalCompanySaved() {
View Full Code Here

Examples of org.libreplan.business.externalcompanies.entities.ExternalCompany.dontPoseAsTransientObjectAnymore()

        externalCompanyDAO.save(externalCompany);
        externalCompanyDAO.flush();
        sessionFactory.getCurrentSession().evict(externalCompany);

        externalCompany.dontPoseAsTransientObjectAnymore();

        return externalCompany;
    }

    private OrderLine createOrderLine() {
View Full Code Here

Examples of org.libreplan.business.externalcompanies.entities.ExternalCompany.dontPoseAsTransientObjectAnymore()

        externalCompanyDAO.save(externalCompany);
        externalCompanyDAO.flush();
        sessionFactory.getCurrentSession().evict(externalCompany);

        externalCompany.dontPoseAsTransientObjectAnymore();

        return externalCompany;
    }

    @Test
View Full Code Here

Examples of org.libreplan.business.labels.entities.Label.dontPoseAsTransientObjectAnymore()

        labelTypeDAO.flush();
        sessionFactory.getCurrentSession().evict(labelType);
        sessionFactory.getCurrentSession().evict(label);

        labelType.dontPoseAsTransientObjectAnymore();
        label.dontPoseAsTransientObjectAnymore();
        return label;
    }

    @Test
    @Transactional
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.