Skip to content

Constructor auto mapping could fail when columnPrefix is specified in the parent resultMap #1495

Closed
@hiirage

Description

@hiirage

MyBatis version

3.5.0

Database vendor and version

H2

Test case or example project

contructor_mapping.zip

Steps to reproduce

Run FooMapperTest to find one object Foo with an immutable Bar from DB

Expected result

get a Foo with a Bar constructed by autoMapping with columnPrefix "b_"

Actual result

An exception thrown with message:
...JdbcSQLSyntaxErrorException: Column "b_B_STR" not found ...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions