thanks for your reply Mark,
As the user must have one relation with a row in the USR_ROLE, I created a constructore like:
from the client I run
and the
EJB em.persist(user);
and it partially works.
But I'm getting different values from the Primary Keys. I expected to find the same key in both records.
About the DAO.
I used that
pattern when I had to write SQL querys, since I've started with EJB3 I'm using a stateless bean to access entity's.
Wrong approach?
Thanks again.