Skip to content

More than one result set with @ResultMap #43

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

Closed
emacarron opened this issue May 1, 2013 · 0 comments
Closed

More than one result set with @ResultMap #43

emacarron opened this issue May 1, 2013 · 0 comments
Assignees
Labels
enhancement Improve a feature or add a new feature
Milestone

Comments

@emacarron
Copy link
Member

Right now @resultMap looks like

public @interface ResultMap {
  String value();
}

So it looks like only one resultmap can be specified, but in fact it accepts setting the value like this way:

@resultMap("rm1,rm2")

I suggest changing the signature to:

public @interface ResultMap {
  String[] value();
}

So it is evident that it supports more than one resultMap and will be used like:

@resultMap("rm1") for one
@resultMap({"rm1","rm2"}) for more than one

We should keep compat with the old method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve a feature or add a new feature
Projects
None yet
Development

No branches or pull requests

1 participant