|
From: Boring, J. W, A. <jb...@at...> - 2002-10-15 14:51:13
|
Hey:
I'm getting this exception and don't know how to fix things
cirrus.hibernate.PropertyAccessException: IllegalArgumentException =
occurred calling getter of =
com.att.bussys.AgreementBean.xbusinessOwnerId: object is not an instance =
of declaring class
I have a composite key.
<composite-id>
<property column=3D"BUS_OWNER_ID" name=3D"xbusinessOwnerId" =
type=3D"string" />
<property column=3D"AGREENUM" name=3D"xagreementNumber" =
type=3D"string" />
</composite-id>
The code is as follows. Is this the proper use of Load with composite =
id?
String id =3D new String ("ADV5387");
String busOwnId =3D new String ("ADV");
String agreeNum =3D new String ("5387");
AgreementBean aBean =3D new AgreementBean();
aBean.setXbusinessOwnerId( busOwnId );
aBean.setXagreementNumber( agreeNum );
=09
try {
myS.load( aBean, id ); =20
=09
Jeff Boring
Custom & Web Services Development
AT&T Labs
jb...@at...
|