Query.stream() Javadoc should specify whether the resulting Stream contains resources

Description

The new Hibernate 5.2 Query.stream() method doesn't say anything about whether we should close the stream after consumption:
https://docs.jboss.org/hibernate/orm/5.2/javadocs/org/hibernate/query/Query.html#stream--

The expectation may well be that Stream simply wraps a JDBC ResultSet and performs all actions lazily, rather than materialising the entire result set at once. Of course, a lazy, resourceful Stream would be hard to implement in Hibernate, with all the eager / lazy loading semantics. I thus assume that it is just convenience for calling list().stream(). But I think it's still worth mentioning in the Javadoc.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Lukas Eder

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.2

Priority

Minor