Now that the JPA 2.2 spec has been approved, we could add a `getResultStream` method in `org.hibernate.query.Query` which will call the `stream` method added in Hibernate 5.1:
default Stream<R> getResultStream() {
return stream();
}
This way, Hibernate 5.2 could be used even if the clients have the JPA 2.1 or 2.2 dependency on their classpath. For more details, check out the Hibernate mailing list thread. |