Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 215
Victor Avatar asked Apr 08 '26 14:04

Victor


1 Answers

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.

like image 107
A. Ionescu Avatar answered Apr 11 '26 03:04

A. Ionescu