Search in sources :

Example 6 with DepartmentDAO

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

the class SpringUtilsForTesting method createDepartmentInContext.

private static Department createDepartmentInContext() {
    final Department department = new Department();
    department.setName("Test Department");
    department.setDescription("Test Department");
    final DepartmentDAO departmentDao = (DepartmentDAO) appCtx.getBean("daoDepartment");
    departmentDao.insert(department);
    return department;
}
Also used : Department(com.autentia.tnt.businessobject.Department) DepartmentDAO(com.autentia.tnt.dao.hibernate.DepartmentDAO)

Aggregations

DepartmentDAO (com.autentia.tnt.dao.hibernate.DepartmentDAO)6 Department (com.autentia.tnt.businessobject.Department)3 OrganizationDAO (com.autentia.tnt.dao.hibernate.OrganizationDAO)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 WorkingAgreementDAO (com.autentia.tnt.dao.hibernate.WorkingAgreementDAO)3 ContactDAO (com.autentia.tnt.dao.hibernate.ContactDAO)2 OfferDAO (com.autentia.tnt.dao.hibernate.OfferDAO)2 ProjectDAO (com.autentia.tnt.dao.hibernate.ProjectDAO)2 Date (java.util.Date)2 OfferRole (com.autentia.tnt.businessobject.OfferRole)1 Role (com.autentia.tnt.businessobject.Role)1 UserCategory (com.autentia.tnt.businessobject.UserCategory)1 WorkingAgreement (com.autentia.tnt.businessobject.WorkingAgreement)1 OrganizationISOCategoryDAO (com.autentia.tnt.dao.hibernate.OrganizationISOCategoryDAO)1 OrganizationTypeDAO (com.autentia.tnt.dao.hibernate.OrganizationTypeDAO)1 ProvinceDAO (com.autentia.tnt.dao.hibernate.ProvinceDAO)1