Search in sources :

Example 6 with RoleDAO

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

the class SpringUtilsForTesting method createRoleInContext.

private static Role createRoleInContext() {
    final Role role = new Role();
    role.setName("Test Role");
    final RoleDAO roleDao = (RoleDAO) appCtx.getBean("daoRole");
    roleDao.insert(role);
    return role;
}
Also used : Role(com.autentia.tnt.businessobject.Role) RoleDAO(com.autentia.tnt.dao.hibernate.RoleDAO)

Aggregations

RoleDAO (com.autentia.tnt.dao.hibernate.RoleDAO)6 Role (com.autentia.tnt.businessobject.Role)4 DepartmentDAO (com.autentia.tnt.dao.hibernate.DepartmentDAO)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 OrganizationDAO (com.autentia.tnt.dao.hibernate.OrganizationDAO)2 ProjectDAO (com.autentia.tnt.dao.hibernate.ProjectDAO)2 Date (java.util.Date)2 Department (com.autentia.tnt.businessobject.Department)1 OfferRole (com.autentia.tnt.businessobject.OfferRole)1 ProjectRole (com.autentia.tnt.businessobject.ProjectRole)1 UserCategory (com.autentia.tnt.businessobject.UserCategory)1 WorkingAgreement (com.autentia.tnt.businessobject.WorkingAgreement)1 SortCriteria (com.autentia.tnt.dao.SortCriteria)1 ArrayList (java.util.ArrayList)1 SelectItem (javax.faces.model.SelectItem)1