I have the following schema, and it works fine for marshalling but when
unmarshalling I get a NullPointerException.
The classes are quite simple. It seems that the problem is in the collection.
It seems to be a "lost connection" between the collection and its elements.
If I use attributes instead of elements for the mapping of ThinOrderItemDTOCL
it marshals fine and it does not complains when unmarshalling, however those
fields (the attributes) are not populated in the object.
I just don�t know where the problem is. I�ve read all the documentation, I�ve
seen several examples, and this is very easy but it�s not working.
Any help will be welcome!
Germ�n Sibay.
<class name="com.extranet.model.order.ThinOrderDTOCL"
verify-constructable="true" auto-complete="false">
<map-to xml="thinOrder"/>
<field name="thinInfo"
type="com.extranet.model.order.ThinOrderInfoDTOCL"/>
<field name="deliveryDay" type="date" />
<field name="mediaSupportType"
type="com.extranet.dto.ObjectIdentifierDTO" />
<field name="totalAmountCurrencyId" type="long" />
<field name="totalAmountValue" type="big-decimal" />
<field name="thinOrderItems"
type="com.extranet.model.order.ThinOrderItemDTOCL"
collection="collection" >
<bind-xml name="Item" />
</field>
</class>
<class name="com.extranet.dto.ObjectIdentifierDTO" verify-
constructable="true" auto-complete="false">
<field name="id" type="long" />
<field name="name" type="string" />
</class>
<class name="com.extranet.model.order.ThinOrderItemDTOCL" verify-
constructable="true" auto-complete="false">
<field name="deliveryNodeId" type="long"
<bind-xml name="deliveryNodeId" node="element" />
</field>
<field name="quantityOfSets" type="integer" >
<bind-xml name="quantityOfSets" node="element" />
</field>
<field name="personalized" type="boolean" >
<bind-xml name="personalized" node="element" />
</field>
</class>
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------