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 <sa...@hibernate.org> wrote: > On 2 August 2017 at 18:40, Gunnar Morling <gun...@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 <sa...@hibernate.org>: > >> > >> On 2 August 2017 at 17:07, Gunnar Morling <gun...@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@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev