IBatis + Java: Retrieving HashMap

会有一股神秘感。 提交于 2019-12-23 15:58:50

问题


How can I retrieve a HashMap using IBatis. I have a select for two values, and I want to maps this in a key-value map.

Someone has faced the same problem?

Thanks in advance


回答1:


See this Question: How to get a sorted result in iBatis?

The user there gets a HashMap but needs a list, hence my answer there.

So you can use the example in that Question description to retrieve a HashMap as he did.



来源:https://stackoverflow.com/questions/3353526/ibatis-java-retrieving-hashmap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!