Skip to content

Auto-mapping fails in a result map referenced from a constructor arg with columnPrefix #1496

@hiirage

Description

@hiirage

MyBatis version

3.5.0

Database vendor and version

H2

Test case or example project

auto_mapping.zip

Steps to reproduce

Run FooMapperTest should find an object Foo with object Bar.

Expected result

Find a foo with a bar auto mapped by properties.

Actual result

Test failed because foo.getBar() returns null.

##Potential Cause
Incorrectly match lowercase columnPrefix with uppercase columnName in method DefaultResultSetHandler::createAutomaticMappings

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions