Re: [hibernate-dev] Stream result change proposal

2016-06-07 Thread Steve Ebersole
So long as we limit that to the Stream access, +1 On Tue, Jun 7, 2016 at 5:07 AM andrea boriero wrote: > it sounds reasonable to me > > On 7 June 2016 at 10:57, Vlad Mihalcea wrote: > > > To get a picture of why we need this, consider the

Re: [hibernate-dev] Stream result change proposal

2016-06-07 Thread andrea boriero
it sounds reasonable to me On 7 June 2016 at 10:57, Vlad Mihalcea wrote: > To get a picture of why we need this, consider the following example from > the docs: > > Stream persons = session.createQuery( >"select p " + >"from Person p " + >"where

Re: [hibernate-dev] Stream result change proposal

2016-06-07 Thread Vlad Mihalcea
To get a picture of why we need this, consider the following example from the docs: Stream persons = session.createQuery( "select p " + "from Person p " + "where p.name like :name" ) .setParameter( "name", "J%" ) .stream(); Map callRegistry = persons .map( row