Sure. What does your mapping file look like currently ? 

Werner

PS It might be that you are going to need a proper getBars() method, but I am 
not 100% sure.

> -----Ursprüngliche Nachricht-----
> Von: Claudio Di Vita [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 10. Mai 2007 09:55
> An: [email protected]
> Betreff: [castor-user] Advanced collection mapping ??
> 
> I have the following class:
> 
> public class Foo {
> 
>     Collection bars;
> 
>     ....
> 
>     public void addBar(String id) {
>         bars.add(i);
>     }
> 
>     public Iterator iterateBars() {
>         return bars.iterator();
>     }
> }
> 
> And I to have Castor generate XML which looks like:
> 
> <foo>
>     ....
>     <bar id="1" />
>     <bar id="2" />
>     <bar id="3" />
> </foo>
> 
> It's possibile to do that ???
> 
> Thank you,
> 
> Claudio
> 
> ---------------------------------------------------------------------
> 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