Thanks in advance 

Werner

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 16. März 2007 11:28
> An: [email protected]
> Betreff: Re: [castor-user] problem using polymorphism in connection with a
> 1:n-relation
> 
> Hi Ralf,
> thanks for the quick response.
> 
> I tried it again with an additional field 'name' between id and the
> collection,
> 
> new mapping:
> 
>  <class name="de.hbo.test.castor.ClassA" identity="id">
> 
>   <map-to table="CLASSA" />
> 
>      <field name="id" type="integer" >
>        <sql name="id" type="integer" />
>      </field>
> 
>      <field name="name" type="string" >
>        <sql name="name" type="varchar" />
>      </field>
> 
>      <field name="children" type="de.hbo.test.castor.ClassB"
> collection="arraylist">
>        <sql many-key="parentid" />
>      </field>
>  </class>
> 
>  ...
> 
> but it didn't work either. I still got the same results.
> 
> I'll create the issue/bug-report as you've suggested. It will take some
> time
> though.
> 
> Thanks again,
> Hubert.
> 
> 
> 
> ----- Original Message -----
> From: "Ralf Joachim" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Thursday, March 15, 2007 6:24 PM
> Subject: Re: [castor-user] problem using polymorphism in connection with a
> 1:n-relation
> 
> 
> > Hi Hubert,
> >
> > I can not see any apparent failure in your mapping and this should
> > normally work. The only thing that may cause problems is the mapping of
> > ClassA which contains a collection mapping as the first none identity
> > mapping. There had been a bug in that area that we resolved recently.
> >
> > I suggest you to create a new issue at:
> >
> > http://jira.codehaus.org/browse/CASTOR
> >
> > and attach a junit test following:
> >
> > http://castor.codehaus.org/how-to-submit-a-bug.html
> >
> > for me to replay the problem.
> >
> > Regards
> > Ralf
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to