Why relationship are used. can we not do same thing with entity beans having CMP fields. for example if i have a VendorBean entity bean and a Product entity bean and if my ProductBean entity bean have a vendorId CMP field then is this case not a relationship?? or i need to keep vendorId field in ProductBean as CMR Field and declare this in deployment descriptor? how these two are different??
posted 13 years ago
Hi, The idea of using CMR is that the EJB container manages the relationship for you and you dont have to explicitly manage the consistency between the two entities. For more information on CMR refer to this tutorial. Hope this helps. Sujatha. OTN Sample Code