This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have an EnityBean say Customer with primary key as CustID I have another EntityBean Address as primary key, a composite with AddressID and CustID Also, CustID in Address table is the foriegn key for Customer table Will it create any problem in CMR , one to may from customer to address Since, the same column in Address table , i.e CustID is used as a part of primary key as well as forign key to Customer table. Since the conatiner will try to update the table two times , once at the time of creation of a row in Address table and another time when I am setting the CMR in Customer Table Pl help
I faced similar situation. CMR fields are updated in postCreate() but if the CMR field also happens to be a primary key then you have to set it in the create() directly (by using setCustomerId(..)) i.e. the setter method of that CMR field (setCustomerProfile(CustomerLocal ..)) is never used and the getter method would fine. -deepak