Shift support for "collection filtering" to Java 8 Streams
Description
Historically Hibernate allowed "filtering" a collection through a special form of Query accessible via Session#createFilter. I would like to shift this to instead leverage Java 8 streaming. There are a 2 main reasons for this:
First and foremost it is a more natural idiom given Java 8's introduction of streaming APIs
Secondly the Query API based filtering adds crazy requirements on the Query grammars and translators which I'd like to clean up.
We agreed to dropping support for Session#createFilter in 6.0.
The next step would be filtering, etc based on Java 8 Streams in some 6.x. To be clear this is intended as an interpretation of the Stream operations into SQM/SQL query to resolve the results.
Historically Hibernate allowed "filtering" a collection through a special form of Query accessible via
Session#createFilter
. I would like to shift this to instead leverage Java 8 streaming. There are a 2 main reasons for this:First and foremost it is a more natural idiom given Java 8's introduction of streaming APIs
Secondly the Query API based filtering adds crazy requirements on the Query grammars and translators which I'd like to clean up.