It'd be easier to do this if you had a wrapper element for your
collections - then you could just discard that entire element. Doing
this without the wrapper is tougher. The easiest way may be to modify
the supplied org.jibx.extras.DiscardElementMapper
marshaller/unmarshaller class so that it skips over repeated instances
of the element it's told to discard.
- Dennis
[EMAIL PROTECTED] wrote:
Hello,
i want to ignore collections during unmarshalling. is this posible
without
unmarshaller
basically i want to ignore reference data while unmarshalling.
my binding file is as follows.
<?xml version="1.0" encoding="UTF-8"?>
<binding>
<mapping name="ALL_TABLE_DATA" class="domain.AllTableData"
ordered="false" >
<collection field="projectRow" usage="optional" >
<structure map-as="domain.Project" />
</collection>
<collection field="workOrderRow" usage="optional" >
<structure map-as="domain.WorkOrder" />
</collection>
<collection field="bjcWorkOrderRow" usage="optional" >
<structure map-as="domain.BjcWorkOrder" />
</collection>
<collection field="bjcWellServiceRow" usage="optional" >
<structure map-as="domain.BjcWellService" />
</collection>
<collection field="wellRow" usage="optional" >
<structure map-as="domain.Well" />
</collection>
<collection field="RwellRow" usage="optional" > <!-- Want to ignore
this while unmarshalling -->
<structure map-as="domain.RWell" />
</collection>
<collection field="RworkOrderRow" usage="optional" > <!-- Want to
ignore this while unmarshalling -->
<structure map-as="domain.RWorkOrder" />
</collection>
</mapping>
.............
...........
..............
thanks
abdul
------------------------------------------------------------------------
***************************************************************************
* This e-mail was scanned by a McAfee e500 appliance when sent
***************************************************************************
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users