@RequiresSession
  public List<WidgetLayoutEntity> findAll() {
    TypedQuery<WidgetLayoutEntity> query = entityManagerProvider.get()
            .createNamedQuery("WidgetLayoutEntity.findAll", WidgetLayoutEntity.class);

    return daoUtils.selectList(query);
  }
DAO utilities for dealing mostly with {@link TypedQuery} results.
ambari-server/src/main/java/org/apache/ambari/server/orm/dao/WidgetLayoutDAO.java