Tag

Object Mapping

0 views collected around this technical thread.

Lobster Programming
Lobster Programming
Sep 30, 2024 · Backend Development

Mastering BO, DTO, VO, PO: When and How to Use Java Object Mapping Tools

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
Mastering BO, DTO, VO, PO: When and How to Use Java Object Mapping Tools
macrozheng
macrozheng
Jul 22, 2024 · Backend Development

Mastering MapStruct: Boost Java Object Mapping Beyond BeanUtils

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.

JavaMapStructObject Mapping
0 likes · 19 min read
Mastering MapStruct: Boost Java Object Mapping Beyond BeanUtils
DaTaobao Tech
DaTaobao Tech
Jun 26, 2024 · Backend Development

Using MapStruct for Efficient Java Bean Mapping

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
Using MapStruct for Efficient Java Bean Mapping
Selected Java Interview Questions
Selected Java Interview Questions
May 30, 2024 · Backend Development

Understanding DTO, VO, PO and Object Mapping with BeanUtils and MapStruct in Java

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
Understanding DTO, VO, PO and Object Mapping with BeanUtils and MapStruct in Java
Java Tech Enthusiast
Java Tech Enthusiast
May 2, 2024 · Backend Development

Why Not to Use Spring BeanUtils for Object Copying and How MapperStruct Improves Performance

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
Why Not to Use Spring BeanUtils for Object Copying and How MapperStruct Improves Performance
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2024 · Backend Development

Why Spring BeanUtils.copyProperties Is Discouraged and MapStruct Is Preferred for Java Object Mapping

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
Why Spring BeanUtils.copyProperties Is Discouraged and MapStruct Is Preferred for Java Object Mapping
Java Architect Essentials
Java Architect Essentials
Sep 8, 2023 · Backend Development

Understanding POJO Types (VO, BO, PO, DTO, DO) and Using the Simple Object Copy Plugin for Code Generation

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.

Backend DevelopmentIDE PluginJava
0 likes · 7 min read
Understanding POJO Types (VO, BO, PO, DTO, DO) and Using the Simple Object Copy Plugin for Code Generation
Code Ape Tech Column
Code Ape Tech Column
Aug 25, 2023 · Backend Development

Understanding POJO, VO, BO, DTO, DO and Using Simple Object Copy Plugin for Java Object Mapping

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.

Backend DevelopmentDTOJava
0 likes · 8 min read
Understanding POJO, VO, BO, DTO, DO and Using Simple Object Copy Plugin for Java Object Mapping
政采云技术
政采云技术
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
DaTaobao Tech
DaTaobao Tech
Sep 1, 2022 · Backend Development

Why MapStruct Outperforms Spring BeanUtils for Object Mapping

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
Why MapStruct Outperforms Spring BeanUtils for Object Mapping
Java Architect Essentials
Java Architect Essentials
Jun 29, 2022 · Backend Development

Using MapStruct for Efficient Java Object Mapping and DTO Conversion

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.

DTOJavaMapStruct
0 likes · 17 min read
Using MapStruct for Efficient Java Object Mapping and DTO Conversion
Java Architect Essentials
Java Architect Essentials
Jun 23, 2022 · Backend Development

Custom BeanConvertUtils: Simplifying PO/VO/DTO Conversion in Java

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.

Backend DevelopmentBeanUtilsJava
0 likes · 7 min read
Custom BeanConvertUtils: Simplifying PO/VO/DTO Conversion in Java
Java Architect Essentials
Java Architect Essentials
May 9, 2022 · Backend Development

Understanding POJO Types and Using the Simple Object Copy Plugin for Java Object Mapping

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.

BackendIDE PluginJava
0 likes · 7 min read
Understanding POJO Types and Using the Simple Object Copy Plugin for Java Object Mapping
Selected Java Interview Questions
Selected Java Interview Questions
Apr 27, 2022 · Backend Development

Using MapStruct for Object Mapping in Java: Basics, Advanced Features and Spring Integration

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 ProcessorDTOJava
0 likes · 16 min read
Using MapStruct for Object Mapping in Java: Basics, Advanced Features and Spring Integration
macrozheng
macrozheng
Oct 25, 2021 · Backend Development

Master Object Mapping in Java with MapStruct: From Basics to Advanced Techniques

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
Master Object Mapping in Java with MapStruct: From Basics to Advanced Techniques
Selected Java Interview Questions
Selected Java Interview Questions
Jul 21, 2021 · Backend Development

Using Spring BeanUtils for Object Property Copying and List Conversion

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
Using Spring BeanUtils for Object Property Copying and List Conversion
macrozheng
macrozheng
Jun 5, 2020 · Backend Development

Master Object Mapping in Java with MapStruct: PO ↔ VO, Lists, and Merges

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.

Backend DevelopmentDTOJava
0 likes · 7 min read
Master Object Mapping in Java with MapStruct: PO ↔ VO, Lists, and Merges