I have a class that extends org.hibernate.internal.CriteriaImpl but as far as I can see the API of that class does not provide an stream() method, like the one provided by org.hibernate.query.Query class.
Why is this class not providing such method? Is there any chance of using streams with criteria?
If you use Criteria API, you can use the stream method either via JPA 2.2 getStreamResult() or if you unwrap the JPA Query to an org.hibernate.query.Query and call stream.