Re: [hibernate-dev] JPA 2.1 / EntityManagerFactory#addNamedQuery

2012-06-20 Thread Steve Ebersole
On Wed 20 Jun 2012 11:07:11 AM CDT, Sanne Grinovero wrote: > Indeed Hibernate Search (re)implements both > - javax.persistence.Query > - org.hibernate.Query > > It would be nice if you could create a "Base" class for us to extend, There is already a base class for org.hibernate.Query... org.

Re: [hibernate-dev] JPA 2.1 / EntityManagerFactory#addNamedQuery

2012-06-20 Thread Sanne Grinovero
Indeed Hibernate Search (re)implements both - javax.persistence.Query - org.hibernate.Query It would be nice if you could create a "Base" class for us to extend, but not critically important: as discussed it just improves the odds for different versions of Search to be compatible with ORM, when

[hibernate-dev] JPA 2.1 / EntityManagerFactory#addNamedQuery

2012-06-20 Thread Steve Ebersole
JPA 2.1 adds an ability to add/override a named query using a "compiled" query object; javax.persistence.Query is the type passed in. javax.persistence.Query just does not give access to the information needed to create a named query definition (at the most basic you cannot even get access to t