code: @SuppressWarnings("unchecked")
      public List<E> findByCriteria(Criterion... criterion) throws HibernateException {
          LOG.trace("Finding instances of " + entityClass.getSimpleName()
              + " based on " + criterion.length + " criteria");
  
          Criteria criteria = createDistinctRootEntityCriteria(criterion);
          return criteria.list();
      }
docs: Gets the results, that match a variable number of passed criterions. Call
  this method without arguments to find all entities.
  
  @param criterion A variable number of hibernate criterions
  @return Entities matching the passed hibernate criterions