Tag

GetterSetter

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
May 19, 2023 · Backend Development

Lombok Getter/Setter Naming Issues with MyBatis and @Accessor(chain=true) Problems in EasyExcel

This article explains how Lombok's generated getter and setter method names can conflict with MyBatis property resolution and cause issues when using EasyExcel's @Accessor(chain=true) annotation, and provides detailed code examples and solutions to resolve these incompatibilities.

CGLIBEasyExcelGetterSetter
0 likes · 9 min read
Lombok Getter/Setter Naming Issues with MyBatis and @Accessor(chain=true) Problems in EasyExcel
Selected Java Interview Questions
Selected Java Interview Questions
Jan 17, 2021 · Backend Development

Lombok Getter/Setter Pitfalls with MyBatis and @Accessor(chain=true) Issues in EasyExcel

This article explains why Lombok-generated getter/setter methods for fields whose second character is uppercase can cause MyBatis to store null values, shows the MyBatis PropertyNamer logic that leads to the problem, and also describes how the @Accessor(chain=true) annotation interferes with EasyExcel's reflection‑based export, offering practical workarounds for both issues.

EasyExcelGetterSetterJava
0 likes · 9 min read
Lombok Getter/Setter Pitfalls with MyBatis and @Accessor(chain=true) Issues in EasyExcel
Java Captain
Java Captain
Jan 22, 2018 · Fundamentals

Understanding Encapsulation in Java with Example Classes

This article explains the concept of encapsulation in Java, describing its purpose of hiding internal details, outlining four key benefits, and illustrating its use through Husband and Wife class examples, including getter/setter methods, validation, and how encapsulation simplifies future code modifications.

EncapsulationGetterSetterJava
0 likes · 9 min read
Understanding Encapsulation in Java with Example Classes