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

association tag notNullColumn attribute points error #2903

Open
YangAoLib opened this issue Jul 12, 2023 · 1 comment
Open

association tag notNullColumn attribute points error #2903

YangAoLib opened this issue Jul 12, 2023 · 1 comment

Comments

@YangAoLib
Copy link

MyBatis version

3.5.10

Database vendor and version

MySQL 8.0.27

Test case or example project

<association property="merchant"
             notNullColumn="merchant_id"
             columnPrefix="mm_"
             resultMap="isoft.merchant.mapper.MerchantManagementMapper.MerchantResult"/>

Steps to reproduce

run this code

Expected result

notNullColumn points to column names that are not affected by columnPrefix.

notNullColumn points to merchant_id.

Actual result

notNullColumn points to MM_merchant_id.

notNullColumn affected by columnPrefix`.

@harawata
Copy link
Member

Hello @YangAoLib ,

There is a test covering that usage and the test is passing, so I need you to create a complete test case or small repro project like these.
Please try to keep it as simple as possible (i.e. minimum number of tables, columns, classes, etc.).

Thank you!

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

No branches or pull requests

2 participants