users@glassfish.java.net

Re: EntityManagerWrapper.getDelegate() returning EntityManager?

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Dec 2007 10:09:04 PST

Not sure why it can't be fixed without waiting for the spec to change. After all, isn't the point of EntityManagerWrapper to just wrap the EntityManager to add some functionality and be otherwise transparent to the user? Or do you really need the spec to say "if you wrap an EntityManager in your own wrapper, make it so that the users don't have to be aware of that"? Isn't it kind of common sense?

Does anybody really expect EntityManager.getDelegate() to return another EntityManager instance? What for?
[Message sent by forum member 'koser' (koser)]

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