Tag

BeanCopy

0 views collected around this technical thread.

政采云技术
政采云技术
Jun 20, 2023 · Backend Development

Problems with BeanCopy and Improving Object Mapping Using MapStruct

This article examines the limitations of BeanCopy for Java DTO mapping—such as inheritance handling, recursive copying, lack of complex type support, performance overhead, and opaque assignments—and demonstrates how MapStruct can address these issues with compile‑time generated, type‑safe mappers.

Backend DevelopmentBeanCopyDTO
0 likes · 9 min read
Problems with BeanCopy and Improving Object Mapping Using MapStruct
macrozheng
macrozheng
May 19, 2023 · Backend Development

Why Upgrading Hutool Can Break Bean Copy and Safer Alternatives

Upgrading the Hutool library from 5.7.2 to 5.8.8 caused unexpected BeanUtil.copyProperties failures due to new validation logic, prompting a detailed analysis of the issue and a comparison of safer object‑mapping approaches such as explicit getters/setters, ModelMapper, and MapStruct.

Backend DevelopmentBeanCopyHutool
0 likes · 6 min read
Why Upgrading Hutool Can Break Bean Copy and Safer Alternatives
Java Architecture Diary
Java Architecture Diary
May 1, 2019 · Backend Development

How CGLIB Generates Bean Copy Bytecode: A Deep Dive with Mica

This article examines the bytecode generated by CGLIB during Bean copying, compares scenarios with and without type conversion, explores Mica’s enhanced BeanCopier implementation, and provides concrete Java code examples to illustrate how field type differences affect generated methods and performance.

BeanCopyCGLIBJava
0 likes · 12 min read
How CGLIB Generates Bean Copy Bytecode: A Deep Dive with Mica