Steve,

It sounds like the generated classes have the JDO friendly getters which return an actual reference to the internal collections instead of a copy. Which would explain why "AsReference" appears in the getter names of the generated sources. Though I'm not sure why the "AsReference" methods would be showing up in the XML, it sounds like Castor was not able to find the proper ***Descriptor.class. Make sure you compiled all the descriptor classes, also you may need to define a mapping file for your MyOwnStuff class which simply declares that it extends the Mzzz class so that Castor doesn't try to re-introspect the class. If you are using 0.9.7 you can put this mapping in a ".castor.xml" file so that castor will automatically load the mapping without needing to specify it.

Hope that helps,

--Keith

Stephen Winnall wrote:
I have generated (in simplified terms) the following structure with SourceGen:

public abstract class MAbstractRoot {}          // written by me

public class MBaseType extends MAbstractRoot {} // generated by SourceGen, "extends" defined in binding file

public class Mxxx extends MBaseType {}    // generated by SoureGen

.... // generated by SourceGen

public class Mzzz extends Myyy {}                // generated by  SourceGen

public class MyOwnStuff extends Mzzz {}    // written by me


When I marshal an object from the class MyOwnStuff, all of the fields generated are duplicated and are identical, except for the fact one of the pairs has the suffix
"AsReference" on the element name.

I have only been able to find references to the "AsReference" suffix in conjunction with getters and setters. Could someone please point me at an explanation of what is happening
here and how to control (OK - prevent) it?

Regards
Steve


-------------------------------------------------
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]
-------------------------------------------------

Reply via email to