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@hibernate.atlassian.net> wrote:
Giovanni Lovato commented on New Feature HHH-9341
 
Re: Stream-based querying

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!

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v1000.1221.0#100059-sha1:377a89b)
Atlassian logo
_______________________________________________
hibernate-issues mailing list
hibernate-issues@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-issues