/** * @see org.openmrs.api.db.ConceptDAO#getConceptMapTypes(boolean, boolean) */ @SuppressWarnings("unchecked") @Override public List<ConceptMapType> getConceptMapTypes(boolean includeRetired, boolean includeHidden) throws DAOException { Criteria criteria = sessionFactory.getCurrentSession().createCriteria(ConceptMapType.class); if (!includeRetired) { criteria.add(Restrictions.eq("retired", false)); } if (!includeHidden) { criteria.add(Restrictions.eq("isHidden", false)); } List<ConceptMapType> conceptMapTypes = criteria.list(); conceptMapTypes.sort(new ConceptMapTypeComparator()); return conceptMapTypes; }