Unfortunately, the factory class won't work until the
following change is made in RowReaderDefaultImpl:
Change:
// 1. create an empty Object by calling the no-parms
factory method
result =
targetClassDescriptor.getFactoryMethod().invoke(null,
null);
To:
// 1. create an empty Object by calling the no-parms
factory method
Object obj =
targetClassDescriptor.getFactoryClass().newInstance();
result =
targetClassDescriptor.getFactoryMethod().invoke(obj,
null);
Gary
--- Armin Waibel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Charles Anthony wrote:
>
> > In a word, Yes.
> >
> > You Must.
>
> or you can specify an object factory class '
> factory-class' in
> class-descriptor to create new instances of your pc
> objects.
> (see
>
http://db.apache.org/ojb/repository.html#class-descriptor
> )
>
> regards,
> Armin
>
> >
> > Cheers,
> >
> > Charles.
> >
> >
> >>-----Original Message-----
> >>From: Ziv Yankowitz [mailto:[EMAIL PROTECTED]
> >>Sent: 05 February 2004 13:37
> >>To: OJB (E-mail)
> >>Subject: OJB - Constructor.
> >>
> >>
> >>Folks,
> >>
> >>Can anyone tell me if we must have an empty
> constructor in
> >>Objects we want to persist and read?
> >>
> >>thanks.
> >>
>
>>---------------------------------------------------------------------
> >>To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> >
>
___________________________________________________________
> > HPD Software Ltd. - Helping Business Finance
> Business
> > Email terms and conditions:
> www.hpdsoftware.com/disclaimer
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]