开发者

xmlbean : dealing with int and a missing element

When binding a POJO with xmlbean, if a tag, normally with an int, is missing, it is mapped with 0. I know that adbean would map it with Integer.MIN_开发者_JS百科VALUE. Is there a such possibility or anything else with xmlbean ?

Thanks,

David


If you can, change the WSDl : put an Integer, not int


I'm not totally sure I understand the question, but you can use .isSetFoo() to check if the foo element is present in the xml document.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜