On Sat, Nov 28, 2009 at 12:40 PM, Gavin King <gavin.king(a)gmail.com> wrote:
No, in EE5 you used @PersistenceContext, which is nontypesafe and
doesn't
support stuff like alternatives. In EE6 you should use CDI to @Inject your
EntityManager just like any other bean.
Right, the point is we are going to hide @PersistenceContext one way or
another (either w/ a producer field or just bypassing it with an extension).
The point I believe Gavin is making is that the developer should only need
to work with @Inject because of its obvious benefits.
-Dan
--
Dan Allen
Senior Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://mojavelinux.com
http://mojavelinux.com/seaminaction
http://www.google.com/profiles/dan.j.allen