Skip to content

Lazy loading should not overwrite a property value set by user #988

@ataverasp

Description

@ataverasp

MyBatis version

3.4.4

Database vendor and version

Oracle 12c

Test case or example project

If I call setter with my own value, and call getter later.

I am expecting I get my own value back, i.e. lazy-loading shouldn't kick in at all.

However, the change makes the lazy-loading kick-in when I call getter, and erase my own value.

Steps to reproduce

  • Load an entity with lazy load enabled
  • Call a setter from a lazy loadable property
  • Call get on that property

Expected result

I should get the value that I set back

Actual result

I'm getting the value from the lazy loading/overriding my value

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions