The entity Bean Provider MUST NOT attempt to modify the values of cmr-fields in an ejbCreate<METHOD>(...) method. This should be done in the ejbPostCreate<METHOD>(...) method instead.
What is the reason behind for the above statement to be true?
In ejbCreate the container creates table in DB by using primary key provided by bean developer.In ejbCreate you cannot perform any activity related to relationship this should be done in ejbPostCreate. Before table creation and primary key creation how can anyone perform activity related to relationship.That is why activity related to relationship should be done after completion of ejbCreate.
Adding more info EJBObject is created after ejbCreate<> and before ejbPostCreate<> and primary key is also available after ejbCreate<>, so relation operations can be done only after ejbCreate<> Thnks. [ August 30, 2007: Message edited by: Neo Greet ]