posted 18 years ago
Hi, Buddies,
I have a problem when I am reading the HFEJB Page 396.
It is said that we must NOT try to reference our own persistent
RELATIONSHIPS in ejbCreate(). But,it is safe to assign the persistent relationship field in ejbPostCreate().
I cannot understand that.
In ejbCreate() method, the container will use the persistent fields to make
the new row in the database. For the CMR field, there should be a
corresponding foreign key field in the row. Why, the foreign key field cannot be inserted into the row, together with the other persistent fields?
Thanks a lot!