Search in sources :

Example 6 with WorkingAgreementDAO

use of com.autentia.tnt.dao.hibernate.WorkingAgreementDAO in project TNTConcept by autentia.

the class SpringUtilsForTesting method createAgreementInContext.

private static WorkingAgreement createAgreementInContext() {
    final WorkingAgreement agreement = new WorkingAgreement();
    agreement.setName("Test Agreement");
    final WorkingAgreementDAO workingAgreementDAO = (WorkingAgreementDAO) appCtx.getBean("daoWorkingAgreement");
    workingAgreementDAO.insert(agreement);
    return agreement;
}
Also used : WorkingAgreement(com.autentia.tnt.businessobject.WorkingAgreement) WorkingAgreementDAO(com.autentia.tnt.dao.hibernate.WorkingAgreementDAO)

Aggregations

WorkingAgreementDAO (com.autentia.tnt.dao.hibernate.WorkingAgreementDAO)6 WorkingAgreement (com.autentia.tnt.businessobject.WorkingAgreement)4 DepartmentDAO (com.autentia.tnt.dao.hibernate.DepartmentDAO)3 RoleDAO (com.autentia.tnt.dao.hibernate.RoleDAO)3 UserCategoryDAO (com.autentia.tnt.dao.hibernate.UserCategoryDAO)3 UserDAO (com.autentia.tnt.dao.hibernate.UserDAO)3 Date (java.util.Date)3 ContactDAO (com.autentia.tnt.dao.hibernate.ContactDAO)2 OfferDAO (com.autentia.tnt.dao.hibernate.OfferDAO)2 OrganizationDAO (com.autentia.tnt.dao.hibernate.OrganizationDAO)2 ProjectDAO (com.autentia.tnt.dao.hibernate.ProjectDAO)2 Department (com.autentia.tnt.businessobject.Department)1 Holiday (com.autentia.tnt.businessobject.Holiday)1 OfferRole (com.autentia.tnt.businessobject.OfferRole)1 RequestHoliday (com.autentia.tnt.businessobject.RequestHoliday)1 Role (com.autentia.tnt.businessobject.Role)1 UserCategory (com.autentia.tnt.businessobject.UserCategory)1 UserHolidaysState (com.autentia.tnt.businessobject.UserHolidaysState)1 HolidaySearch (com.autentia.tnt.dao.search.HolidaySearch)1 RequestHolidaySearch (com.autentia.tnt.dao.search.RequestHolidaySearch)1