Title: For the whole hierarchy, Castor behaves as if "auto-complete" was set to "true"

Hi all,

I have a question about Castor's mapping since I get an error when trying to serialize my Java objects :
I have defined a mapping for a class "DesignObject", and then another mapping for a subclass "BusinessEventSample".
"BusinessEventSample" is a subclass of "DesignObject" thus I defined the "extends" attribute in its mapping. Moreover, I have to set the auto-complete attribute to "true" for "BusinessEventSample" whereas I have to let auto-complete to "false" for DesignObject.

The problem is that Castor seems to ignore the ancestor's auto-complete attribute and behaves as if it was set to "true" for the whole hierarchy (the error comes from "DesignObject"). Indeed, when I change the auto -complete of "BusinessEventSample" to "false", the unmarshalling process is working.

Did I do something wrong?
Here's a sample of my mapping file:

    <class name="com.axway.framework.business.abstractobjects.DesignObject"
           auto-complete="false">
                <field name="status" type="integer"/>       
                <field name="releaseName" type="string"/>       
    </class>       
    <class name="com.axway.xd.samples.sample01.business.structure.BusinessEventSample"
           extends="com.axway.framework.business.abstractobjects.DesignObject"
                   auto-complete="true">
    </class>

Thanks a lot
Jerome Pastre

Reply via email to