Tag

Bean Mapping

0 views collected around this technical thread.

Architecture Digest
Architecture Digest
May 30, 2025 · Backend Development

MapStruct for Java Bean Mapping: Features, Expressions, QualifiedByName, NullValueMappingStrategy, and Decorator

MapStruct is a compile‑time Java annotation processor that generates type‑safe mapping code, offering concise, high‑performance conversions with features such as expressions, qualifiedByName methods, null‑value strategies, and decorators, illustrated through detailed code examples and usage guidelines.

Bean MappingExpressionJava
0 likes · 7 min read
MapStruct for Java Bean Mapping: Features, Expressions, QualifiedByName, NullValueMappingStrategy, and Decorator
Code Ape Tech Column
Code Ape Tech Column
May 21, 2025 · Backend Development

Advanced MapStruct Usage: expression, qualifiedByName, nullValueMappingStrategy, and Decorator

This article introduces MapStruct, a compile‑time Java bean‑mapping framework, and demonstrates advanced features such as expression‑based mappings, qualifiedByName for custom conversions, nullValueMappingStrategy for handling nulls, and the use of Decorator classes to apply global post‑processing logic.

Bean MappingJavaMapStruct
0 likes · 6 min read
Advanced MapStruct Usage: expression, qualifiedByName, nullValueMappingStrategy, and Decorator
Selected Java Interview Questions
Selected Java Interview Questions
Feb 3, 2025 · Backend Development

Advanced MapStruct Usage: Expressions, qualifiedByName, nullValueMappingStrategy, and Decorators

MapStruct is a compile‑time Java annotation processor that automates bean mapping, offering concise, high‑performance, type‑safe conversions, and advanced features such as expression mapping, qualifiedByName methods, null‑value strategies, and decorators, with full IDE support and illustrative code examples.

Annotation ProcessorBean MappingJava
0 likes · 7 min read
Advanced MapStruct Usage: Expressions, qualifiedByName, nullValueMappingStrategy, and Decorators
Architect's Guide
Architect's Guide
Jan 27, 2025 · Backend Development

Advanced MapStruct Techniques: expression, qualifiedByName, nullValueMappingStrategy, and Decorator

This article introduces MapStruct, a compile‑time Java bean mapping framework, and demonstrates advanced features such as expression‑based mappings, qualifiedByName custom converters, nullValueMappingStrategy handling, and decorator‑based post‑processing with concrete code examples for Spring‑based projects.

Bean MappingJavaMapStruct
0 likes · 6 min read
Advanced MapStruct Techniques: expression, qualifiedByName, nullValueMappingStrategy, and Decorator
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 30, 2024 · Backend Development

Which Java Bean Mapping Tool Is Fastest? Spring BeanUtils vs MapStruct vs Others

This article compares the performance of several Java bean‑mapping utilities—including Spring BeanUtils, Apache BeanUtils, Orika, Cglib BeanCopier, ModelMapper, MapStruct, and manual getter/setter code—by converting a sample Entity to a DTO 10,000 times and summarizing the results and best‑use recommendations.

Bean MappingCGLIBDTO
0 likes · 10 min read
Which Java Bean Mapping Tool Is Fastest? Spring BeanUtils vs MapStruct vs Others
macrozheng
macrozheng
Oct 15, 2024 · Backend Development

Master Advanced MapStruct Techniques for Efficient Java Bean Mapping

This article introduces MapStruct, a compile‑time Java bean mapping framework, and walks through its key features, expression mapping, qualifiedByName custom methods, null‑value strategies, and decorator usage, providing code examples for each advanced scenario.

Bean MappingJavaMapStruct
0 likes · 7 min read
Master Advanced MapStruct Techniques for Efficient Java Bean Mapping
Architecture Digest
Architecture Digest
Sep 22, 2024 · Backend Development

Advanced MapStruct Usage: Expressions, qualifiedByName, NullValueMappingStrategy, and Decorator

This article introduces MapStruct, a compile‑time Java bean‑mapping framework, and demonstrates advanced features such as expression mapping, qualifiedByName for custom conversions, null‑value handling strategies, and the use of decorators to extend mapper behavior, complete with code examples.

Bean MappingJavaMapStruct
0 likes · 7 min read
Advanced MapStruct Usage: Expressions, qualifiedByName, NullValueMappingStrategy, and Decorator
Architect's Tech Stack
Architect's Tech Stack
Jul 22, 2024 · Backend Development

Using MapStruct for Efficient Bean Copying in Java

This article explains why manual property copying in layered Java applications is inefficient, compares runtime copiers like BeanUtils and BeanCopier, and demonstrates how MapStruct provides compile‑time, type‑safe, high‑performance bean mapping with support for deep copy, collection mapping, field ignoring, and Lombok integration.

Bean MappingJavaMapStruct
0 likes · 10 min read
Using MapStruct for Efficient Bean Copying in Java
Java Architect Essentials
Java Architect Essentials
Jan 8, 2024 · Backend Development

Using MapStruct for Efficient Java Bean Copying and Mapping

This article explains why manual property copying in Java is inefficient, compares several runtime bean‑copy utilities, and demonstrates how MapStruct provides a compile‑time, type‑safe, high‑performance solution for shallow and deep object mapping, including handling of collections and ignored fields.

Bean MappingCGLIBJava
0 likes · 13 min read
Using MapStruct for Efficient Java Bean Copying and Mapping
Architect's Guide
Architect's Guide
Nov 4, 2023 · Backend Development

Eliminating Code Duplication in Java Backend Development with Design Patterns, Annotations, and Bean Mapping

This article explains how to reduce repetitive Java backend code by extracting common logic into abstract classes, applying the Template Method and Factory patterns, using custom annotations with reflection for API serialization, and leveraging bean‑mapping utilities to copy properties between DTOs and DOs.

AnnotationsBean MappingJava
0 likes · 21 min read
Eliminating Code Duplication in Java Backend Development with Design Patterns, Annotations, and Bean Mapping
Top Architect
Top Architect
Jun 13, 2023 · Backend Development

MapStruct Tutorial: Introduction, Setup, and Advanced Usage

This article introduces MapStruct, explains the challenges of JavaBean conversion, shows how to add dependencies, define POJOs and DTOs, create mapper interfaces with @Mapper, demonstrates basic and advanced mapping scenarios—including custom methods, nested objects, and dependency injection—while highlighting its performance and debugging benefits.

Annotation ProcessorBean MappingJava
0 likes · 17 min read
MapStruct Tutorial: Introduction, Setup, and Advanced Usage
Java Architect Essentials
Java Architect Essentials
Jun 4, 2023 · Backend Development

MapStruct Tutorial: Introduction, Setup, and Advanced Usage

This article introduces MapStruct, explains why JavaBean conversion is challenging, shows how to add Maven dependencies, define POJOs and DTOs, create mapper interfaces, run tests, and explores its performance benefits, simple usage, debugging advantages, and advanced features such as custom mappings, multi‑source mapping, bean updates, and integration with dependency injection.

Annotation ProcessorBean MappingJava
0 likes · 16 min read
MapStruct Tutorial: Introduction, Setup, and Advanced Usage
Code Ape Tech Column
Code Ape Tech Column
Feb 22, 2022 · Backend Development

Using MapStruct for Java Bean Mapping: Concepts, Code Samples, and Configuration

This article introduces MapStruct, explains its purpose as a compile‑time Java bean mapper, walks through a complete example with Maven dependencies, entity and DTO classes, mapper interfaces, custom mappings, and configuration options, and compares its performance with other copying libraries.

Bean MappingJavaMapStruct
0 likes · 15 min read
Using MapStruct for Java Bean Mapping: Concepts, Code Samples, and Configuration
Code Ape Tech Column
Code Ape Tech Column
Sep 5, 2021 · Backend Development

An Introduction to MapStruct: Java Bean Mapping, Usage, and Best Practices

This article explains what MapStruct is, how to set it up in a Java project, demonstrates various mapping scenarios—including simple, nested, custom, and multi‑source mappings—covers performance benefits, integration methods, and provides complete code examples for practical backend development.

Annotation ProcessorBean MappingJava
0 likes · 15 min read
An Introduction to MapStruct: Java Bean Mapping, Usage, and Best Practices
Code Ape Tech Column
Code Ape Tech Column
Jan 13, 2021 · Backend Development

Getting Started with MapStruct: High‑Performance Java Bean Mapping

This article introduces MapStruct, explains why traditional JavaBean conversion methods like reflection are inefficient, shows how to set up Maven dependencies, define entities and DTOs, write mapper interfaces, run tests, and highlights the performance, debugging, simplicity, and dependency‑free advantages of the generated code.

Annotation ProcessorBean MappingJava
0 likes · 8 min read
Getting Started with MapStruct: High‑Performance Java Bean Mapping
Selected Java Interview Questions
Selected Java Interview Questions
Jan 10, 2021 · Backend Development

Introduction to MapStruct: What It Is, How to Use It, and Its Advantages

This article introduces MapStruct, a type‑safe, high‑performance, dependency‑free Java bean mapping annotation processor, explains the problems with manual and reflection‑based conversions, provides step‑by‑step Maven setup, entity/DTO definitions, mapper interface, and a JUnit test, and discusses its performance, debugging, and simplicity advantages.

Annotation ProcessorBean MappingJava
0 likes · 9 min read
Introduction to MapStruct: What It Is, How to Use It, and Its Advantages
macrozheng
macrozheng
Nov 18, 2020 · Backend Development

Why MapStruct Is the Fastest Java Bean Mapper and How to Use It

This article introduces MapStruct, a compile‑time Java bean‑mapping framework, explains why it outperforms other mappers, shows how to configure Maven, define mapper interfaces, handle custom field mappings, and demonstrates its impressive runtime performance with practical code examples.

Bean MappingJavaMapStruct
0 likes · 13 min read
Why MapStruct Is the Fastest Java Bean Mapper and How to Use It
Java Architecture Diary
Java Architecture Diary
Mar 29, 2019 · Backend Development

Which Java Bean Copy Library Is Fastest? A Comprehensive Benchmark

This article benchmarks popular Java bean‑copy tools—including MapStruct, Selma, mica, CGLIB, Spring BeanUtils, and Hutool—under various scenarios such as simple models, type‑conversion, list mapping, and map‑to‑bean conversion, presenting performance scores, error margins, and functional comparisons to help developers choose the most suitable library.

Bean MappingJavaPerformance Benchmark
0 likes · 7 min read
Which Java Bean Copy Library Is Fastest? A Comprehensive Benchmark