MapStruct

An annotation processor for generating type-safe bean mappers (by mapstruct)

Stats

Basic MapStruct repo stats
2
3,788
7.6
1 day ago

mapstruct/mapstruct is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

MapStruct Alternatives

Similar projects and alternatives to MapStruct

  • GitHub repo Jackson JSON Processor

    Main Portal page for the Jackson project

  • GitHub repo Hibernate

    Hibernate's core Object/Relational Mapping functionality

  • GitHub repo jackson-databind

    General data-binding package for Jackson (2.x): works on streaming API (core) implementation(s)

  • GitHub repo record-builder

    Record builder generator for Java records

  • GitHub repo jpa-spec

  • GitHub repo infobip-spring-data-querydsl

    Infobip Spring Data Querydsl provides new functionality that enables the user to leverage the full power of Querydsl API on top of Spring Data repository infrastructure.

  • GitHub repo Persism

    A zero ceremony ORM for Java

NOTE: The number of mentions on this list indicates mentions on common posts. Hence, a higher number means a better MapStruct alternative or higher similarity.

Posts

Posts where MapStruct has been mentioned. We have used some of these posts to build our list of alternatives and similar projects - the last one was on 2021-03-20.
  • Build a Spring Boot ReST API
    dev.to | 2021-04-13
    We use a mapping library, MapStruct, to automatically map an entity to a DTO and vice-versa.
  • Introduction to Reflectionless: Discover the New Trend in the Java World
    reddit.com/r/java | 2021-03-28
  • Now that records are official, hoping for expanded support from popular libraries and frameworks
    reddit.com/r/java | 2021-03-20
    MapStruct supports Records so in theory you can just map to/from whatever it is that can't handle records as another POJO. Besides I most of the time recommend mapping hibernate entities do DTOs anyway.
  • Building GraphQL and REST endpoints in Spring Boot App
    reddit.com/r/java | 2021-03-15
    If not, I don't think there is a singular answer to "the best practice" for return data. Traditionally, DTO classes are used. MapStruct can be useful here.