title: createNativeQuery - return Page
body: <p>I have the following custom implementation of my repository.</p>
  
  <pre><code>public final EntityManager entityManager;
  
  public ImputacionRepositoryImpl(EntityManager entityManager) {
      this.entityManager = entityManager;
  }
  
  @Override
  public List&lt;ImputacionData&gt; imputacionesList() {
      Query q = entityManager.createNativeQuery("SELECT " + "empleado.id as empleadoId,"
              + "MAX(imputacion.dia) as dia," + "imputacion.id as id " + "FROM rrhh.empleado empleado "
              + "JOIN rrhh.imputacion imputacion ON imputacion.empleado = empleado.id "
              + "WHERE empleado.id NOT IN (SELECT empleado.id " + "FROM rrhh.empleado empleado "
              + "LEFT JOIN rrhh.imputacion imputacion ON imputacion.empleado = empleado.id " + "WHERE "
              + "(imputacion.dia &gt;= '2017-06-01' AND imputacion.dia &lt;= '2017-10-31') "
              + "GROUP BY empleado.id,imputacion.empleado, imputacion.id) " + "AND true=true "
              + "GROUP BY empleado.id,imputacion.empleado, imputacion.id ORDER BY imputacion.dia DESC");
      List&lt;ImputacionData&gt; imputaciones = q.getResultList();
      return imputaciones;
  }
  </code></pre>
  
  <p>And I need that instead of returning a <code>List&lt;ImputacionData&gt;</code>, return <strong><code>Page&lt;ImputacionData&gt;</code></strong>, but I do not know if it is possible, and how to do it.</p>