[hibernate-dev] Plan on adding the JPA 2.2 Query#getResultStream() in 5.2

Steve Ebersole steve at hibernate.org
Wed Aug 2 15:33:12 EDT 2017


Because Hibernate's Session extends the JPA EntityManager, any methods Vlad
adds to Session effectively "override" the ones from EntityManager - but
allows our internals to use "the forward looking" methods regardless of
whether the underlying JPA libs are 2.1 or 2.2.

On Wed, Aug 2, 2017 at 1:38 PM Sanne Grinovero <sanne at hibernate.org> wrote:

> On 2 August 2017 at 18:40, Gunnar Morling <gunnar at hibernate.org> wrote:
> > Sure, but you may not publish something like an JPA 2.1+ with just some
> of
> > the 2.2 methods.
>
> Sure, I never proposed that. Just *asked* some clarifications ;)
>
> >
> > 2017-08-02 17:40 GMT+01:00 Sanne Grinovero <sanne at hibernate.org>:
> >>
> >> On 2 August 2017 at 17:07, Gunnar Morling <gunnar at hibernate.org> wrote:
> >> >> You don't plan on actually updating the JPA API we use at build time
> >> >> right?
> >> >
> >> > We cannot do that, you may not provide a version of a spec'ed API with
> >> > additional methods. It'd have to be in ORM's sub-interface or similar.
> >>
> >> The new spec'ed API already has this method.
> >
> >
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list