You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EntityManager injected via default persistence unit:
@PersistenceContext
public final void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}
Howto deal with several persistence units?
Original issue reported on code.google.com by [email protected] on 21 Aug 2010 at 8:44
The text was updated successfully, but these errors were encountered:
The last commit will help you deal with several persistence units. I removed
the @PersistenceContext from the GenericDao class. Now, you can use the
annotation into your own DAO and specify a persistence context name.
The CdiGenericDao contains the @PersistenceContext.
Original issue reported on code.google.com by
[email protected]
on 21 Aug 2010 at 8:44The text was updated successfully, but these errors were encountered: