@RequiresSession
  public List<E> findAll() {
    final TypedQuery<E> query = entityManagerProvider.get().createQuery("SELECT entity FROM " + entityClass.getSimpleName() + " entity", entityClass);
    return daoUtils.selectList(query);
  }
Retrieves all entities.

@return list of all entities
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/CrudDAO.java