Hello François,
Yes, my entities have @Entity annotation + they are in my persistence.xml.
I noticed something weird.
When I do this:
> final Query q = entityManager.createQuery("from " + className + " c");
>
> q.getResultList().iterator();
it returns results.
But when I do this:
> // pType is Class
> <T>
> final TypedQuery
> <T>
> queryAll = entityManager.createQuery(query.select(query.from(pType)));
> return queryAll.getResultList();
I have the error
> Caused by: java.lang.IllegalArgumentException: Not an entity: class
> com.example.FirstBean
Thanks,
GFO
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html