<br><br><div class="gmail_quote">On Sat, Nov 28, 2009 at 12:40 PM, Gavin King <span dir="ltr">&lt;<a href="mailto:gavin.king@gmail.com">gavin.king@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
No, in EE5 you used @PersistenceContext, which is nontypesafe and doesn&#39;t support stuff like alternatives. In EE6 you should use CDI to @Inject your EntityManager just like any other bean.<br></blockquote><div><br>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.<br>
<br>-Dan</div></div><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br>Registered Linux User #231597<br><br><a href="http://mojavelinux.com">http://mojavelinux.com</a><br><a href="http://mojavelinux.com/seaminaction">http://mojavelinux.com/seaminaction</a><br>
<a href="http://www.google.com/profiles/dan.j.allen">http://www.google.com/profiles/dan.j.allen</a><br>