@RequiresSession
  public List<ResourceEntity> findAll() {
    TypedQuery<ResourceEntity> query = entityManagerProvider.get().createQuery("SELECT resource FROM ResourceEntity resource", ResourceEntity.class);
    return daoUtils.selectList(query);
  }
Find all resources.

@return all resources or an empty List
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/ResourceDAO.java