|
It really depends on the strategy that you want to
choose based on the "closeness" of your relationships. Typically app servers
provide options for
1. Immediate loading (where you can load both the
beans together)
2. Lazy loading (where bean will be loaded whenever
the getter on CMR is accessed)
Coupled with this, there can be option to load only
pk or the entire target bean.
So in your case, various options can be
:
1a. When driver is loaded, only carPk is
loaded
1b. When driver is loaded, entire car record is
loaded
2a. When getCar is called only carPk is
loaded
2b. When getCar is called, entire car record is
loaded
When only carPK is loaded, entire car record can be
loaded on the first business method call to the car entity bean.
You need to consult your vendor's document for the
kind of support they provide.
Regards,
Hemant
=========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
|
- CMR glenn
- Hemant Khandelwal
