Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Environment:Windows XP
-
Number of attachments :
Description
Hi,
I have a binding file as follows :
<mapping name="ADR_ENTR" class="com.dnb.dlws.binding.SubjBusinessAddressEntryVO">
<value name="ADR_USG_CD" field="adrUsgCd" usage="optional" />
<structure name="ADR_ENTR_VW" usage="optional">
<structure name="ADR_LINE" usage="optional">
<value name="TEXT" field="adrLine1Text" usage="optional" />
<value name="TEXT_CD" field="adrLine1TextCode" usage="optional" />
<value name="DSPL_SEQ_NBR" field="adr1dsplSeqNbr" usage="optional" />
</structure>
<structure name="ADR_LINE" usage="optional">
<value name="TEXT" field="adrLine2Text" usage="optional" />
<value name="TEXT_CD" field="adrLine2TextCode" usage="optional" />
<value name="DSPL_SEQ_NBR" field="adr2dsplSeqNbr" usage="optional" />
</structure>
<value name="POST_TOWN" field="postTown" usage="optional" />
<value name="POST_CODE" field="postCode" usage="optional" />
<value name="CNTY" field="cnty" usage="optional" />
<value name="TERR" field="terr" usage="optional" />
<value name="GEO_REF_ID" field="geoRefId" usage="optional" />
<value name="LANG_CD" field="langCd" usage="optional" />
</structure>
</mapping>
Please find attached corresponding java file to map the fileds.
if adrLine1Text , adrLine1TextCode and adr1dsplSeqNbr ( Address Line 1) fileds are null in the java object, JiBX should not create empty tag <ADR_LINE/> . Here <ADR_LINE> is mentioned as "optional" tag.
In our project, there should not be any empty tags like <ADR_LINE/>. Because of this requirement, we are evaluating other binding APIs.
It should be handleded in the subsequent release.
Please let me know if you require additional information.
Thanks
Maruthee
Additional Info:
The above mentioned <ADR_ENTR> tag is a collection as described below:
<mapping name="ASSN" class="com.dnb.dlws.binding.ChildTreeLinkAssnVO" usage="optional">
<value name="DUNS_NBR" field="dunsNbr" usage="optional" />
<value name="ASSN_TYPE_CD" field="assnTypeCd" usage="optional" />
<collection field="childTreeBusNme" item-type="com.dnb.dlws.binding.BusinessNameEntryVO" usage="optional" />
<collection name="ADR_ENTR" field="childTreeBusAdr" item-type="com.dnb.dlws.binding.BusinessAddressEntryVO" usage="optional" />
<structure name="OTH_RAT_SCR" usage="optional">
<value name="SCR" field="othRatScr" usage="optional" />
<value name="SCR_CD" field="othRatScrCd" usage="optional" />
</structure>
</mapping>