我想用Jackson对象在XML下映射。
_Layout.cshtml
以下是我当前的映射。我面临的当前问题是我无法获取任何嵌套的IfCondition对象。
我如何转换嵌套对象,可以有N层嵌套。我是否缺少任何注释?
<field source="condition" target="transaction.transactionType">
<ifConditions>
<ifCondition operand="isShortSell" operator="eq" expectedValue="true"> <!-- This is available after tranformation> -->
<ifCondition operand="quanity" operator="gt" expectedValue="0" /> <!-- This is NOT available after tranformation> -->
open
</ifCondition>
</ifCondition>
<ifCondition operand="isShortSell" operator="eq" expectedValue="true"> <!-- This is available after tranformation> -->
<ifCondition operand="quanity" operator="lt" expectedValue="0" /> <!-- This is NOT available after tranformation> -->
close
</ifCondition>
</ifCondition>
</ifConditions>
</field>
我缺少任何注释吗?