开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜