This content has been marked as final.
Show 2 replies
-
1. Re: Insertin records on One-to-Many relation
jobor Nov 15, 2004 2:59 AM (in response to jaime)You have to use the cmr field of the user that is created. After creation you can have an empty Collection on calling the getCMRfield() method. Then you can use the Collection methods to add related CMP's to that collection.
Suppose you hava an collection of roles(CMP's) in a Collection newRoles.
user.getRoles.addAll(newRoles);
This is just one way. Read the EJB spec for more.
Johan -
2. Re: Insertin records on One-to-Many relation
jaime Nov 15, 2004 1:58 PM (in response to jaime)Thanks for your reply
I'm gona to read the EJB Spec
thanks again