简体   繁体   中英

IBatis + Java: Retrieving HashMap

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM