Tagged articles
28 articles
Page 1 of 1
Architect's Guide
Architect's Guide
Aug 23, 2025 · Backend Development

Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks

This article explains why duplicate code harms maintainability and demonstrates three practical techniques—factory/template method patterns, annotation‑driven reflection, and bean‑mapping utilities—to refactor Java backend services and dramatically reduce redundant implementations.

Code RefactoringDesign PatternsJava
0 likes · 23 min read
Eliminate Repetitive Java Code: Design Patterns, Annotations & Mapping Tricks
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.

DecoratorJavaNullValueMappingStrategy
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.

Backend DevelopmentCode GenerationDecorator
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 ProcessorBackend DevelopmentJava
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.

Annotation ProcessingJavabean-mapping
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.

Performance TestSpring Bootbean-mapping
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.

Annotation Processingbean-mappingcode-generation
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.

Backend DevelopmentCode GenerationDecorator
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.

Backend DevelopmentCode GenerationJava
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.

JavaObject Copybean-mapping
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.

Code RefactoringDesign PatternsJava
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 ProcessorBackend DevelopmentCode Generation
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 ProcessorCode GenerationJava
0 likes · 16 min read
MapStruct Tutorial: Introduction, Setup, and Advanced Usage
Su San Talks Tech
Su San Talks Tech
Apr 3, 2023 · Backend Development

Mastering MapStruct: Fast, Type‑Safe Java Bean Mapping with Real‑World Examples

This article introduces MapStruct, a compile‑time Java bean‑mapping code generator, explains its core concepts, shows step‑by‑step examples—including Maven dependencies, entity and DTO definitions, mapper interfaces, custom conversions, and advanced configurations—while comparing its performance to other copy utilities and highlighting deep‑copy behavior.

Code GenerationJavabean-mapping
0 likes · 13 min read
Mastering MapStruct: Fast, Type‑Safe Java Bean Mapping with Real‑World Examples
The Dominant Programmer
The Dominant Programmer
Feb 9, 2023 · Backend Development

Simplify Java Bean Mapping with MapStruct: A Step‑by‑Step Guide

This article explains how to replace repetitive getter/setter code with MapStruct by showing dependency setup, defining source and target classes, creating mapper interfaces with @Mapping annotations, testing the conversion, and handling common integration issues such as Swagger conflicts.

bean-mappingmappermapstruct
0 likes · 6 min read
Simplify Java Bean Mapping with MapStruct: A Step‑by‑Step Guide
Programmer DD
Programmer DD
Apr 29, 2022 · Backend Development

Simplify Bean Mapping with MapStruct Spring Extensions and ConversionService

This article introduces MapStruct’s new Spring extension, shows how to replace manual BeanUtil conversions with generated mappers, explains the Spring Converter interface, and demonstrates custom configuration and integration with ConversionService for seamless DTO/VO/PO transformations in Java backend projects.

ConversionServiceJavabean-mapping
0 likes · 8 min read
Simplify Bean Mapping with MapStruct Spring Extensions and ConversionService
Java Backend Technology
Java Backend Technology
Apr 12, 2022 · Backend Development

Which Java Bean Mapper Is Fastest? 12 Conversion Tools Compared and Ranked

This article evaluates twelve Java object‑property mapping libraries—including MapStruct, ModelMapper, Dozer, and BeanUtils—by measuring their performance across 100 to one‑million conversions, presenting code examples, rating each tool, and recommending the most efficient solution for backend development.

JavaObject Conversionbean-mapping
0 likes · 12 min read
Which Java Bean Mapper Is Fastest? 12 Conversion Tools Compared and Ranked
Code Ape Tech Column
Code Ape Tech Column
Mar 9, 2022 · Backend Development

Eliminating Code Duplication in Business Logic with Design Patterns, Annotations, Reflection, and Bean Mapping

This article explains how to reduce repetitive business‑level Java code by applying the Template Method and Factory patterns, leveraging custom annotations with reflection, and using bean‑mapping utilities, thereby improving maintainability, extensibility, and overall code quality.

Code RefactoringDesign PatternsJava
0 likes · 20 min read
Eliminating Code Duplication in Business Logic with Design Patterns, Annotations, Reflection, and Bean Mapping
Programmer DD
Programmer DD
Oct 4, 2021 · Backend Development

Simplify Java Bean Mapping with MapStruct: A Practical Guide

This article introduces the open‑source MapStruct library for Java, shows how to configure Maven and Lombok, provides step‑by‑step code examples for basic and advanced entity‑to‑DTO mappings—including list conversions, multi‑object mappings, and default values—so developers can replace boilerplate conversion code with clean, type‑safe mappings.

Lombokbackend-developmentbean-mapping
0 likes · 10 min read
Simplify Java Bean Mapping with MapStruct: A Practical Guide
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 ProcessorCode GenerationJava
0 likes · 15 min read
An Introduction to MapStruct: Java Bean Mapping, Usage, and Best Practices
Programmer DD
Programmer DD
Jun 6, 2021 · Backend Development

Fastest Java Bean Mapper? BeanUtils, Dozer, Orika, BeanCopier Compared

This article compares the usage, performance, and internal implementation of popular Java bean‑mapping tools—Spring BeanUtils, Apache BeanUtils, CGLIB BeanCopier, Dozer, and Orika—providing benchmark results, code examples, and detailed analysis to help developers choose the most efficient solution for their layered architectures.

DozerJavaOrika
0 likes · 33 min read
Fastest Java Bean Mapper? BeanUtils, Dozer, Orika, BeanCopier Compared
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 ProcessorJavabean-mapping
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 ProcessorJavabean-mapping
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.

Code GenerationJavabean-mapping
0 likes · 13 min read
Why MapStruct Is the Fastest Java Bean Mapper and How to Use It
Java Backend Technology
Java Backend Technology
Sep 8, 2020 · Backend Development

Master Bean Mapping with MapStruct: From PO to VO Made Easy

This article introduces MapStruct, a Java annotation‑processor that automatically generates bean‑mapping code, compares it with manual setters and Spring/Apache BeanUtils, and demonstrates how to handle property name differences, collections, type conversions, and multi‑source mappings through clear examples and code snippets.

Annotation ProcessorCode GenerationJava
0 likes · 11 min read
Master Bean Mapping with MapStruct: From PO to VO Made Easy
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.

Javabean-mappingperformance benchmark
0 likes · 7 min read
Which Java Bean Copy Library Is Fastest? A Comprehensive Benchmark