Re: EntityManager#createNamedQuery(String, Class) problem

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

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: TypedQuerySomeInterface 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

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 ljnel...@gmail.com wrote: We're using OpenJPA 2.1.0. I've got a case