Giovanni, that would be awesome. It would have to live on top of 6.x
codebase which is unfortunately not yet compiling.
On Tue, Aug 29, 2017, 3:32 AM Giovanni Lovato (JIRA) <
jira(a)hibernate.atlassian.net> wrote:
Giovanni Lovato
<
https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=heruan>
*commented* on [image: New Feature] HHH-9341
<
https://hibernate.atlassian.net/browse/HHH-9341>
Re: Stream-based querying
<
https://hibernate.atlassian.net/browse/HHH-9341>
This is very interesting. I'm working on implementations of Java 8 Stream,
Predicate, Function,
Comparator and Collector which translates to Criteria API. That is:
Stream<Foo> fooStream = new CriteriaStream(Foo.class, entityManager);
Stream<Baz> bazStream = fooStream
.filter(Foo_.bar.greaterThan(5))
.sort(Foo_.bar.ascending())
.skip(10)
.limit(20)
.map(Foo_.baz);
I'd love to see this in ORM, and I'd love to share and contribute if of
any interest!
[image: Add Comment]
<
https://hibernate.atlassian.net/browse/HHH-9341#add-comment> Add Comment
<
https://hibernate.atlassian.net/browse/HHH-9341#add-comment>
Get JIRA notifications on your phone! Download the JIRA Cloud app for
Android
<
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
or iOS
<
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
------------------------------
This message was sent by Atlassian JIRA (v1000.1221.0#100059-sha1:377a89b)
[image: Atlassian logo]
_______________________________________________
hibernate-issues mailing list
hibernate-issues(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-issues