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;
}
Aggregations