Not really. But can you please create a new Jira issue and attach all
relevant files, i.e. domain classes, mapping file, JUnit test case, etc.
Regards
Werner
nclemeur wrote:
Hello all,
I have tried to upgrade from castor-xml-1.0.5 to 1.2 and I am facing some
validation errors that I don't really understand.
The xml that I am reading is produced by Castor and I believe is correct.
When I disable the marshalling validation, it works fine (and if I generate
the xml from there it produce the exact same file, which seems to indicate
that the marshalling was correct).
I am using quite a lot of references in my mapping and some of them are
nested inside collections. For example with the following xml I am having
problem the message Unresolved IDREFS 1.
<Root>
<ObjectAList id="1">
</ObjectAList>
<ObjectAList id="2">
</ObjectAList>
<ObjectAList id="3">
</ObjectAList>
<ObjectA>1</ObjectA>
</Root>
My mapping would be something like
<class name="Root">
<field name="ObjectAList" collection="arraylist" type="ObjectA">
<bind-xml node="element"/>
</field>
<field name="ObjectA" type="ObjectA"
<bind-xml name="ObjectA" node="element" reference="true" />
</field>
</class>
<class name="ObjectA">
<field name="id" >
<bind-xml name="id" node="attribute" />
</field>
</class>
Is anyone seeing something wrong here?
Thank you very much for any hints
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email