Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Handle overloaded mapper methods #705

Closed
Labels
@evfool

Description

MyBatis version

3.4.1-SNAPSHOT/master

Test case or example project

o.a.i.submitted.overload.OverloadTest - See pull request #704 for the testcase and more details.

Steps to reproduce

Given

  • a mapper interface with two methods with the same name but different parameter sets (e.g. one and two parameters)
  • a mapper xml with a single statement with the same name as the interface method, using all parameters from the interface, but properly checking for null values

    Expected result

    One can use both methods, both being properly mapped to the sql statement from the mapper xml

    Actual result

    Trying to execute the method not having all parameters used in the mapper xml statement will result in a BindingException

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /