Re: EntityManager#createNamedQuery(String, Class) problem

2011-10-26 Thread Laird Nelson
On Tue, Oct 25, 2011 at 1:31 PM, Laird Nelson wrote: > I've got a case where I'm building a query like this: > > TypedQuery q = em.createNamedQuery("someQuery", > SomeInterface.class); > > Now, SomeInterface is not the actual entity class--that would be > SomeInterfaceEntity (not mentioned above,

Re: EntityManager#createNamedQuery(String, Class) problem

2011-10-25 Thread Rick Curtis
> I am also using (I know, I know) subclass-based enhancement. Have you tried with build time, or -javaagent enhancement? Can you put together a small unit test? Thanks, Rick On Tue, Oct 25, 2011 at 12:31 PM, Laird Nelson wrote: > We're using OpenJPA 2.1.0. > > I've got a case where I'm buildi

EntityManager#createNamedQuery(String, Class) problem

2011-10-25 Thread Laird Nelson
We're using OpenJPA 2.1.0. I've got a case where I'm building a query like this: TypedQuery q = em.createNamedQuery("someQuery", SomeInterface.class); Now, SomeInterface is not the actual entity class--that would be SomeInterfaceEntity (not mentioned above, as you'll note). But it is an interfa