开发者

How can I exclude objects from being mapped by Apache Commons Betwixt?

开发者 https://www.devze.com 2022-12-19 06:09 出处:网络
ORMapper that I use extends some of its own attributse all objects that mapped, now I need to generate XML from objects, but I don\'t want to generate information about my ORMapper related objects开发

ORMapper that I use extends some of its own attributse all objects that mapped, now I need to generate XML from objects, but I don't want to generate information about my ORMapper related objects开发者_Go百科, so how can I exclude ORMapper related classes from being generated to XML?


Take a look here, go to section Ignoring Properties.

By the way, is there any particular reason you are using Betwixt? May be the app is already using that, thats fair enough. But I am just afraid if you are starting to use it in some application. Because thats pretty much frozen already. Try looking at alternatives XStream, or Simple.


See here, the "Ignoring properties" section

0

精彩评论

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

关注公众号