Search in sources :

Example 6 with OrganizationDAO

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

the class InteractionBean method getSelectedOrganization.

public Organization getSelectedOrganization() {
    if (interaction != null && interaction.getProject() != null) {
        if (selectedOrganization == null) {
            selectedOrganization = interaction.getProject().getClient();
        }
        return selectedOrganization;
    }
    if (selectedOrganization == null) {
        OrganizationDAO organizationDAO = new OrganizationDAO();
        selectedOrganization = organizationDAO.loadById(ConfigurationUtil.getDefault().getIdOurCompany());
    }
    return selectedOrganization;
}
Also used : OrganizationDAO(com.autentia.tnt.dao.hibernate.OrganizationDAO)

Aggregations

OrganizationDAO (com.autentia.tnt.dao.hibernate.OrganizationDAO)6 ContactDAO (com.autentia.tnt.dao.hibernate.ContactDAO)3 DepartmentDAO (com.autentia.tnt.dao.hibernate.DepartmentDAO)3 OfferDAO (com.autentia.tnt.dao.hibernate.OfferDAO)3 ProjectDAO (com.autentia.tnt.dao.hibernate.ProjectDAO)3 Date (java.util.Date)3 RoleDAO (com.autentia.tnt.dao.hibernate.RoleDAO)2 UserCategoryDAO (com.autentia.tnt.dao.hibernate.UserCategoryDAO)2 UserDAO (com.autentia.tnt.dao.hibernate.UserDAO)2 WorkingAgreementDAO (com.autentia.tnt.dao.hibernate.WorkingAgreementDAO)2 Department (com.autentia.tnt.businessobject.Department)1 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