开发者

ibatis java.util.Map parameters with dot(.) character

I have a parameters Map with property name开发者_Python百科 "xx.xx", but Ibatis cannot know property named "xx.xx" ("xxxx" is ok).

how can I use Map property with name contains dot(.) character? or I have to remove the dot(.).

Thanks very much

Thang Hoang


iBatis uses JavaBean naming conventions, and "xx.xx" isn't a valid JavaBean property name. I think you're going to have to change those map keys to something more conventional, before feeding it to iBatis.


OGNL will treat it as a property(see ASTProperty), use map.get('aaa.bbb') will fix it.


Do you mean something like this ("Get value from bean within a bean") which is what my BeanPropertyController does? I don't know if this is even possible with IBATIS, but I know my utility can do that... :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜