Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A mechanism to allow returning custom collections and/or implementations from mapper functions #2877

Open
acanthite1855 opened this issue May 18, 2023 · 1 comment

Comments

@acanthite1855
Copy link

I tried using Guava's immutable collections, specifically ImmutableList as return type in mapper functions, but obviously MyBatis does not know how to construct them. Unfortunately, it looks like currently there is no way make it work (see my question on stackoverflow for more details).

It would be really nice to have a mechanism to allow mapping results to custom collections or custom implementations of JDK's collection interfaces.

@XenoAmess
Copy link

seems you can just add a SPI mechenism here.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants