mybatis-3 icon indicating copy to clipboard operation
mybatis-3 copied to clipboard

MyBatis MapKey for nested collection

Open PavelTurk opened this issue 11 years ago • 10 comments

This issue is based on my post https://groups.google.com/forum/#!topic/mybatis-user/Enju_-c8SbQ

Currently @MapKey cant be used for nested collections in result map. The problem is that developers put @MapKey() in interface. I dont' know why they did this but it was wrong solution as it's clear that there can be more that one Map. The solution of this problem is very simple - move MapKey from interface to resultMap so it could be used in association,collections etc.

So I suggest to make this changes in MyBatis.

PavelTurk avatar Feb 04 '15 08:02 PavelTurk

Any plans to release this?

punitdhiman avatar Oct 06 '15 13:10 punitdhiman

Has this been implemented?

moneydance avatar Dec 21 '16 15:12 moneydance

contribution welcome !!

kazuki43zoo avatar Dec 21 '16 16:12 kazuki43zoo

I would love this feature as well. :)

mashley806 avatar Jan 12 '17 22:01 mashley806

has any one implement it ?

lyrl avatar Dec 28 '17 05:12 lyrl

I want this too!

LouisWayne avatar Jul 22 '18 10:07 LouisWayne

MyBatis really needed feature for mapping complex objects via annotations, especially maps. Live in 21st century and use XML? Seriously???

MikePryadko avatar Jan 14 '20 18:01 MikePryadko

good feature, waiting it for a long time

colin-lee avatar May 03 '20 03:05 colin-lee

It's sad it was never implemented, rest in peace. I spent a lot of time only to discover that this option simply didn't exist.

highel avatar Nov 29 '20 17:11 highel

good feature, waiting it for a long time

seqwait avatar Dec 12 '21 03:12 seqwait