| 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. |