emacarron / mybatis

Automatically exported from code.google.com/p/mybatis
0 stars 0 forks source link

Query for map in MB3 #155

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the MyBatis are you using?
3.x

Please describe the problem.  Unit tests are best!
MyBatis 2.x has a helper method to convert a queryForList into a map base on a 
property value as the key.  It would be nice to have this feature in 3.x.  I am 
thinking that if you had a mapper method which returned a Map in combination 
with a @MapKey("propertyName") annotation you could accomplish this.

What is the expected output? What do you see instead?

Please provide any additional information below.

Original issue reported on code.google.com by nathan.m...@gmail.com on 22 Oct 2010 at 10:10

GoogleCodeExporter commented 9 years ago
This feature has been added.

Original comment by nathan.m...@gmail.com on 2 Nov 2010 at 2:19

GoogleCodeExporter commented 9 years ago

Original comment by nathan.m...@gmail.com on 18 Nov 2010 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by eduardo.macarron on 4 Apr 2012 at 10:40