Now that the [JPA 2.2 spec has been approved|https://jcp.org/aboutJava/communityprocess/maintenance/jsr338/ChangeLog-JPA-2.2-MR.txt], we could add a ` {{ getResultStream ` }} method in ` {{ org.hibernate.query.Query ` }} which will call the ` {{ stream ` }} method added in Hibernate 5.1:
{code:java} default Stream<R> getResultStream() { return stream(); } {code}
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|http://lists.jboss.org/pipermail/hibernate-dev/2017-August/016381.html]. |
|