I will have a look into @Role, that sounds like what I am looking for. (See last post).
Thanks gmarcus
Right, @Role is the solution.
Is it not possible to inject mutually exclusive instances of the same type? At first thought, the @Role solution seems awkward. I have been thinking about this same type of scenario, for a project still in the early stages of thought. I thought I might try using a discriminator column, to provide different subtypes. I've used this in Hibernate and another ORM api but have not tried it with JPA/EJB3 yet.
I have tried the @Role (or @Roles to be more specific) and everything is working fine.
Thanks
Is @Role/@Roles what you're looking for?
Yes, that worked perfectly for me.
oops, sorry for the late reply. Didn't see the other posts...