What i tried to say, pardon for my english if it was the problem, is that in the code generated by castor SourceGen, when yo have a 1:N relation, the master class have a vector of objects, you can add objects with the method addXXXXXXXX(MyObject vMyObject). This methof look like this:
public void addMyObject (MyObject vMyObject)
throws java.lang.IndexOutOfBoundsException
{
_vMyObjectList.add(vMyObject);
} //-- void addMyObject (MyObject vMyObject)
And, it should be like this, if you like to use castor JDO (assuming MyFather 1-->N MyObject)
public void addMyObject (MyObject vMyObject)
throws java.lang.IndexOutOfBoundsException
{
_vMyObjectList.add(vMyObject);
vMyObject.setMyFather(this);
} //-- void addMyObject (MyObject vMyObject)
When i add this, to the code generated by castor, i get StackOverflowException, whe Castor is trying to validate In the MyObjetcClassDescriptor the field MyFather.
Hope I explained it well.
Any comments???????
Regards, Enrique.
-----Mensaje original-----
De: Arnaud Blandin [mailto:[EMAIL PROTECTED]]
Enviado el: mi�rcoles, 13 de noviembre de 2002 17:31
Para: [EMAIL PROTECTED]
Asunto: Re: [castor-dev] Castor Source Generator cross-referenced bug
number
Hi Enrique,
What do you mean by cross reference? Can you post a test that
demonstrates the problem?
Arnaud
-----Original Message-----
From: Enrique Rodr�guez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 13, 2002 5:13 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Castor Source Generator cross-referenced bug
number
What is the bug number for this bug????
how is the work on it???
Regards, Enrique.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
