This content has been marked as final.
Show 2 replies
-
1. Re: eager-load-group and primary key?
erikture Nov 12, 2002 8:25 AM (in response to erikture)I did forget one thing!
I am also in some cases reaching the CMP bean throw a relation from another bean. The code looks like this.
bean.getOtherBean().getId().
All attributes in otherBean is loaded.
/Erik -
2. Re: eager-load-group and primary key?
jboynes Nov 12, 2002 12:21 PM (in response to erikture)The PK is always 'eager-loaded' - it's the identity used to select the record.
If you just want the PK then you can use getPrimaryKey() on the interface itself and avoid loading the bean at all.