Tagged articles
Object Mapping
24 articles · Page 1 of 1
This article identifies five common MapStruct misuses — complex logic in @Mapping expressions, missing bidirectional relationship handling, over-mapping in hot paths, injecting business services into mappers, and naive PATCH updates — and shows correct Java alternatives for each case.
Code MaintainabilityJPAJava
0 likes · 11 min read

This guide introduces MapStruct, a Java annotation‑based mapper that outperforms BeanUtils by providing fast, type‑safe conversions between PO, VO, DTO and nested objects, supporting collections, custom logic, dependency injection, constants, expressions, and exception handling within Spring Boot applications.
DTOMapStructObject Mapping
0 likes · 17 min read

This article explains how replacing verbose switch or if‑else chains with object mapping in JavaScript reduces code size, improves readability, eliminates break‑statement bugs, and often yields better performance, while also covering advanced scenarios like function mapping and the Map object.
Object Mappingcode optimizationswitch statement
0 likes · 5 min read

This article clarifies the purpose of Java classes ending with “O”—BO, DTO, VO, PO—explains their proper usage in a typical front‑end/back‑end workflow, and compares mapping solutions like Spring BeanUtils and MapStruct with code examples.
BODTOJava
0 likes · 6 min read

This article explains the drawbacks of manual property copying and traditional bean utilities, introduces MapStruct as a compile‑time, high‑performance mapper with type‑safety, deep‑copy support, collection handling, and customizable field‑ignoring, and shows practical Maven and Lombok integration examples.
Bean CopyJavaMapStruct
0 likes · 13 min read

MapStruct is a powerful Java annotation‑based mapper that outperforms BeanUtils by generating compile‑time mapping implementations without reflection, supporting simple, nested, collection, and custom mappings, dependency injection, constants, expressions, and error handling, making object‑DTO conversions efficient and maintainable in Spring Boot projects.
JavaMavenObject Mapping
0 likes · 19 min read

MapStruct is a compile‑time Java bean‑mapping generator that, when added as an annotation processor in Maven, Gradle or an IDE, lets developers define @Mapper interfaces to automatically produce type‑safe, high‑performance implementations—including custom field mappings, nested collections, and lifecycle hooks—thereby eliminating boilerplate code and centralizing mapping logic.
Annotation ProcessorJavaMapStruct
0 likes · 17 min read

This article explains the roles of DTO, VO, and PO in Java applications, compares manual property copying with BeanUtils and MapStruct, provides complete code examples for both approaches, and offers guidance on choosing the appropriate method based on performance and project needs.
BackendBeanUtilsDTO
0 likes · 13 min read

Spring’s BeanUtils.copyProperties is error‑prone and slow due to type mismatches, primitive‑wrapper issues, null overwrites and reflection, whereas MapStruct generates compile‑time, type‑safe mapper code that avoids these pitfalls, delivers far better performance, and integrates easily with Maven and Lombok.
BeanUtilsJavaMapStruct
0 likes · 6 min read

The article explains the limitations of Spring's BeanUtils.copyProperties—such as type mismatches, null overwriting, and reflection overhead—and demonstrates how MapStruct provides a faster, compile‑time generated alternative for copying properties between Java objects, with usage examples and Maven setup.
BeanUtilsJavaMapStruct
0 likes · 6 min read

This article explains the different POJO classifications such as VO, BO, PO, DTO, and DO in Java, compares various object‑copy utilities, and demonstrates how the Simple Object Copy IDE plugin can automatically generate conversion methods to improve development efficiency and code quality.
IDE pluginJavaObject Mapping
0 likes · 7 min read

This article explains the different POJO classifications such as VO, BO, PO, DTO and DO, describes their typical usage scenarios in layered Java applications, and demonstrates how the Simple Object Copy IntelliJ plugin can automatically generate conversion code, comparing it with other mapping tools.
BackendDTOJava
0 likes · 8 min read

This article explains the differences between POJO, VO, BO, PO, DTO and DO in Java, demonstrates how the Simple Object Copy IDEA plugin can generate one‑click conversion methods, compares it with other mapping tools, and provides sample code for complex object transformations.
DTOJavaObject Mapping
0 likes · 8 min read


政采云技术Jun 20, 2023 · Backend Development
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.
BeanCopyDTOJava
0 likes · 9 min read

MapStruct dramatically outperforms Spring's BeanUtils for Java object mapping by generating compile-time code that avoids reflection, achieving roughly ten-to-thirty times faster conversions—even across dozens of fields—while requiring only simple PO/Entity definitions and optional @Mapping annotations, making it a superior, low-learning-curve replacement.
BeanUtilsJavaMapStruct
0 likes · 14 min read

This article explains how MapStruct simplifies Java object‑to‑DTO mapping by defining mapping rules, demonstrates various features such as default methods, abstract mappers, multiple parameters, @MappingTarget updates, handling of fields without getters/setters, Spring integration, and custom type conversions with clear code examples.
DTOMapStructObject Mapping
0 likes · 17 min read

This article introduces a custom BeanConvertUtils class that extends BeanUtils to provide concise, lambda‑friendly conversion of single objects and lists between PO, VO, and DTO types, while highlighting BeanUtils limitations, performance impact, and important usage cautions.
BeanUtilsObject MappingUtility
0 likes · 7 min read

Learn how to efficiently convert between Java entities and DTOs using MapStruct, covering basic mappings, default methods, abstract classes, multiple parameters, update operations, Spring integration, and custom type conversions, with complete code examples and explanations to streamline data transfer in backend applications.
DTOJavaMapStruct
0 likes · 18 min read

This article explains the definitions and typical usage scenarios of various POJO types (VO, BO, PO, DTO, DO) in Java layered architecture, demonstrates how the Simple Object Copy IntelliJ plugin can generate one‑click conversion methods between them, compares it with other mapping tools, and provides installation instructions.
Object MappingPOJO
0 likes · 7 min read

This article explains how MapStruct, a Java annotation‑processor library, can automatically generate mapper implementations to convert between entities and DTOs, covering basic usage, default methods, abstract classes, multiple source parameters, update operations, handling fields without getters/setters, Spring injection and custom type conversions.
Annotation ProcessorDTOMapStruct
0 likes · 16 min read

This article explains the different POJO variants—VO, BO, PO, DTO, and DO—describes their typical usage in layered Java applications, introduces the Simple Object Copy IntelliJ plugin for one‑click conversion method generation, compares it with common mapping tools such as MapStruct and BeanUtils, and discusses performance and flexibility advantages.
BeanUtilsIDE pluginJava
0 likes · 10 min read

This article introduces MapStruct, a powerful Java annotation‑based object‑mapping library, compares it with BeanUtils, shows how to integrate it into a Spring Boot project, and provides step‑by‑step examples for basic, collection, nested, composite, and advanced mappings including dependency injection, constants, custom processing, and exception handling.
DTOJavaMapStruct
0 likes · 24 min read

This article demonstrates how to use Spring's BeanUtils.copyProperties method to copy properties between objects and provides a generic utility to convert a list of source objects into a list of target objects, illustrated with Java code examples for User and Employee classes.
BackendBeanUtilsJava
0 likes · 5 min read

Learn how to efficiently convert between PO, VO, and DTO objects in Java using Spring BeanUtils for identical fields and MapStruct for custom mappings, including single objects, lists, and merging multiple sources, with full Maven setup and generated implementation details.
DTOJavaMapStruct
0 likes · 7 min read
