Stack Explorer

MapStruct

Utility

Code generator for Java object mapping at compile time

↑ Growing

Features

javamappingdtocode-generation

Pros and Cons

Ventajas

  • + Compile-time generation
  • + No runtime reflection
  • + High performance
  • + Type-safe
  • + Lombok integration

Desventajas

  • - Requires processor configuration
  • - Compile errors can be confusing
  • - Initial learning curve

Use Cases

  • Entity to DTO mapping
  • Object transformation
  • REST APIs with DTOs
  • Clean Architecture

Tecnologías Relacionadas

Compatible with

Related