users@glassfish.java.net

Re: JPA: problems converting class names to classes?

From: <glassfish_at_javadesktop.org>
Date: Wed, 25 Aug 2010 06:51:46 PDT

I had the same issue with Spring 3 and JPA 2 with Eclipselink 2. I got around by using the EXTENDED persistence context type on the spring injected entity manager used to build the queries:

...
@PersistenceContext(name="myPU", PersistenceContextType.EXTENDED)
private JpaEntityManager em;
...

Hope that works for you.
[Message sent by forum member 'kouao']

http://forums.java.net/jive/thread.jspa?messageID=480969