Skip to content

MyBatis MapKey for nested collection #345

Open
@PavelTurk

Description

@PavelTurk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprove a feature or add a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions