hi anders,

i assume that the field 'id' in your class Customer is incompatible with the
type returned from db.

hth
jakob

----- Original Message -----
From: "Anders Hermansen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 3:42 PM
Subject: Metadata exception when querying table


> Hello,
>
> I'm still fighting to get this ojb beast to work, and I now have it
> actually working in some cases :)
>
> But if I try to fetch data from a table which has foreign keys, I get
> some trouble.
>
> The error message is:
> [org.apache.ojb.broker.accesslayer.RsIterator] ERROR: Unable to build
> object instance (MAYBE you don't have a constructor available):class
> no.yoyo.pdfmaker.ojb.Customers: Error setting field:id in
> object:no.yoyo.pdfmaker.ojb.Customers
>
> I have attached the test code and the exception.
>
> Anybody knows what is going wrong?
>
> Do I need to supply more info? repository.xml?
>
>
> Anders
>
> --
> Anders Hermansen
> YoYo Mobile as
>


----------------------------------------------------------------------------
----


> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to