开发者

xmlbean : dealing with int and a missing element

开发者 https://www.devze.com 2023-01-16 19:41 出处:网络
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 a

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

精彩评论

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