Forums Register Login

CMR field doubt

+Pie Number of slices to send: Send
 

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?

Thanks in Advance!!
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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 ]
+Pie Number of slices to send: Send
Thanks a lot for the explanation.
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 472 times.
Similar Threads
new question of ejb exam
URGENT HELP in EJB-QL USING WEBLOGIC 8.1
My last 2 Qs about CMR please
Chapter 7 - HF study group
How do we update relationship data using CMP model entity bean ??
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:34:31.