Add the getResultStream() default method in org.hibernate.query.Query

Description

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:

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.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure