Tagged articles

Entity Mapping

4 articles · Page 1 of 1
LuTiao Programming
LuTiao Programming
Feb 25, 2026 · Backend Development

Which Entity‑to‑DTO Mapping Is Fastest? Benchmark of 3 Approaches

By benchmarking manual mapping, MapStruct, and JPQL projection across simple and relational scenarios, the article shows that JPQL is slightly faster in raw tests, but the real performance impact stems from N+1 queries, making query strategy the key factor rather than the mapping technique itself.

DTOEntity MappingN+1
0 likes · 8 min read
Which Entity‑to‑DTO Mapping Is Fastest? Benchmark of 3 Approaches
Selected Java Interview Questions
Selected Java Interview Questions
Jul 14, 2023 · Backend Development

Using MapStruct for Efficient Entity Mapping in Java Projects

This article introduces the open‑source MapStruct library, shows how to configure Maven and Lombok dependencies, defines entity and DTO classes with Lombok annotations, creates a mapper interface, and demonstrates simple, list, multi‑source, and default‑value mappings with complete code examples.

DTOEntity MappingLombok
0 likes · 11 min read
Using MapStruct for Efficient Entity Mapping in Java Projects
Java High-Performance Architecture
Java High-Performance Architecture
Apr 22, 2023 · Backend Development

Master Java Entity Mapping with MapStruct: A Complete Guide

This article introduces the open‑source MapStruct library for Java, shows how to configure Maven, defines entity and DTO classes, demonstrates basic and advanced mapping techniques—including list conversion, multi‑object merging, and default values—while providing complete code examples and explanations.

Entity Mappingjavamapper
0 likes · 11 min read
Master Java Entity Mapping with MapStruct: A Complete Guide
Java Captain
Java Captain
Sep 21, 2021 · Backend Development

Using MapStruct for Efficient Entity‑DTO Mapping in Java

This article introduces the open‑source MapStruct library for Java, showing how to configure Maven dependencies, define entity and DTO classes with Lombok, create mapper interfaces, and perform simple and advanced object conversions such as list mapping, multi‑object merging, and default value handling.

Entity MappingLombokjava
0 likes · 9 min read
Using MapStruct for Efficient Entity‑DTO Mapping in Java