Anyone out there using CMP 2.0 and container managed relationships (CMRs) with XDoclet? How are you handling the data objects being generated without relationships? My guess is that I would write a simple class to wrap my master and detail objects, but this somehow seems wrong.
 
For example, I have a UserAccountData, UserPhoneData, and UserAddressData. Right now, it is a 1-1 mapping, so I would create a UserAccountModel, which held 1 reference to an instance of each. My stateless session bean would then accept the model in its createAccount() method and create the 3 CMPs appropriately.
 
Anyone have any suggestions on this?
 
Thanks,
James

Reply via email to