This content has been marked as final.
Show 2 replies
-
1. Re: more binding types
graben Jun 12, 2009 9:17 AM (in response to gonorrhea)Have you read the spec carefully? In chapter 1.3.3 for example you can read examples how to define producer methods that will do this job.
@Produces @PersistenceContext(unitName="UserData") @UserDatabase EntityManager userDatabaseEntityManager;
With this definition you can use @UserDatabase as binding type everywhere you wants to.
-
2. Re: more binding types
gonorrhea Jun 12, 2009 9:54 AM (in response to gonorrhea)your example makes sense, thx.