Thanks Keith! That comes a little closer. The generated source still doesn't conform to the JavaBean spec - which is a getter and setter that matches the attribute name. But I may be able to work with what is generated with the extra collections attribute set to true.
I'm still up for suggestions if anyone knows of a way to get the SourceGenerator to generate java bean compliant code. Thanks Danny On 9/26/05, Keith Visco <[EMAIL PROTECTED]> wrote: > Danny, > > This may provide you with code that looks more like what you want: > > http://castor.codehaus.org/xml-faq.html#How-can-I-make-the-generated-source-code-more-JDO-friendly? > > --Keith > > Danny Collins wrote: > > Hello, > > > > I have just started working with Castor and the source generator. I > > am trying to make a nice generic process to adapt one set of objects > > to the graph of castor objects and I am getting stuck when it comes to > > lists. > > > > Castor seems to insist on providing a getter and setter that return > > and accept an Array of the specific type of objects instead of just > > the JavaBean style of getter and setter for the List that it is > > interfacing with. > > > > Is there any way to over come this default behavior and have the > > getters and setters generated with List getX() and setX(List)? > > > > > > TIA, > > Danny > > > > ------------------------------------------------- > > If you wish to unsubscribe from this list, please > > send an empty message to the following address: > > > > [EMAIL PROTECTED] > > ------------------------------------------------- > > > > > > > ------------------------------------------------- > If you wish to unsubscribe from this list, please > send an empty message to the following address: > > [EMAIL PROTECTED] > ------------------------------------------------- > > ------------------------------------------------- If you wish to unsubscribe from this list, please send an empty message to the following address: [EMAIL PROTECTED] -------------------------------------------------

