Alternatives to MapStruct logo

Alternatives to MapStruct

Lombok, Jackson, guava, Java 8, and RxJava are the most popular alternatives and competitors to MapStruct.
43
30
+ 1
1

What is MapStruct and what are its top alternatives?

It is a code generator that greatly simplifies the implementation of mappings between Java bean types based on a convention over configuration approach. The generated mapping code uses plain method invocations and thus is fast, type-safe and easy to understand.
MapStruct is a tool in the Java Tools category of a tech stack.
MapStruct is an open source tool with 5.2K GitHub stars and 717 GitHub forks. Here’s a link to MapStruct's open source repository on GitHub

Top Alternatives to MapStruct

  • Lombok
    Lombok

    It is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again, with one annotation your class has a fully featured builder, Automate your logging variables, and much more. ...

  • Jackson
    Jackson

    It is a suite of data-processing tools for Java (and the JVM platform), including the flagship streaming JSON parser / generator library, matching data-binding library (POJOs to and from JSON) and additional data format modules to process data encoded in Avro, BSON, CBOR, CSV, Smile, (Java) Properties, Protobuf, XML or YAML; and even the large set of data format modules to support data types of widely used data types such as Guava, Joda. ...

  • guava
    guava

    The Guava project contains several of Google's core libraries that we rely on in our Java-based projects: collections, caching, primitives support, concurrency libraries, common annotations, string processing, I/O, and so forth. ...

  • Java 8
    Java 8

    It is a revolutionary release of the world’s no 1 development platform. It includes a huge upgrade to the Java programming model and a coordinated evolution of the JVM, Java language, and libraries. Java 8 includes features for productivity, ease of use, improved polyglot programming, security and improved performance. ...

  • RxJava
    RxJava

    A library for composing asynchronous and event-based programs by using observable sequences for the Java VM. ...

  • Quarkus
    Quarkus

    It tailors your application for GraalVM and HotSpot. Amazingly fast boot time, incredibly low RSS memory (not just heap size!) offering near instant scale up and high density memory utilization in container orchestration platforms like Kubernetes. We use a technique we call compile time boot. ...

  • Apache FreeMarker
    Apache FreeMarker

    It is a "template engine"; a generic tool to generate text output (anything from HTML to auto generated source code) based on templates. It's a Java package, a class library for Java programmers. ...

  • Thymeleaf
    Thymeleaf

    It is a modern server-side Java template engine for both web and standalone environments. It is aimed at creating elegant web code while adding powerful features and retaining prototyping abilities. ...

MapStruct alternatives & related posts

Lombok logo

Lombok

138
69
0
Get rid of boilerplate code, Spice up your java
138
69
+ 1
0
PROS OF LOMBOK
    Be the first to leave a pro
    CONS OF LOMBOK
      Be the first to leave a con

      related Lombok posts

      Jackson logo

      Jackson

      136
      53
      0
      A suite of data-processing tools for Java
      136
      53
      + 1
      0
      PROS OF JACKSON
        Be the first to leave a pro
        CONS OF JACKSON
          Be the first to leave a con

          related Jackson posts

          guava logo

          guava

          742
          170
          6
          Google Core Libraries for Java 6+
          742
          170
          + 1
          6
          PROS OF GUAVA
          • 5
            Interface Driven API
          • 1
            Easy to setup
          CONS OF GUAVA
            Be the first to leave a con

            related guava posts

            Java 8 logo

            Java 8

            650
            572
            0
            A development environment for building applications
            650
            572
            + 1
            0
            PROS OF JAVA 8
              Be the first to leave a pro
              CONS OF JAVA 8
                Be the first to leave a con

                related Java 8 posts

                RxJava logo

                RxJava

                323
                154
                1
                Reactive Extensions for the JVM
                323
                154
                + 1
                1
                PROS OF RXJAVA
                • 1
                  Reactive Libraries as per Reactive Manifesto
                CONS OF RXJAVA
                  Be the first to leave a con

                  related RxJava posts

                  Luis Pena
                  Cloud Solution Architect at AWS · | 2 upvotes · 9.2K views
                  Shared insights
                  on
                  QuarkusQuarkusRxJavaRxJava

                  Can I mix RxJava with Quarkus?

                  See more
                  Quarkus logo

                  Quarkus

                  208
                  261
                  57
                  A Kubernetes Native Java stack tailored for OpenJDK HotSpot and GraalVM, crafted from the best of breed Java...
                  208
                  261
                  + 1
                  57
                  PROS OF QUARKUS
                  • 10
                    Open source
                  • 9
                    Fast startup
                  • 8
                    Integrated with GraalVM
                  • 7
                    Low memory footprint
                  • 7
                    Produce native code
                  • 6
                    AOT compilation
                  • 6
                    Hot Reload
                  • 4
                    Reactive
                  CONS OF QUARKUS
                  • 2
                    Boilerplate code when using Reflection

                  related Quarkus posts

                  Shared insights
                  on
                  JavaJavaQuarkusQuarkusAWS LambdaAWS Lambda

                  We are working on a transaction processing application and everything needs to happen in real-time. I have used AWS Lambda with Quarkus + Java, and struggled with cold start time however Lambda is still cost effective. so wanted to understand which one will be suitable as alternative to lambda services.

                  See more
                  Joshua Dean Küpper
                  CEO at Scrayos UG (haftungsbeschränkt) · | 4 upvotes · 71.8K views

                  We use Quarkus with native compilation in GraalVM for our global REST-API "Charon", that can be used by every developer to request user, server and game-data (protected through OAuth2). Quarkus offers a reliable framework, library and stack for high-quality APIs and integrates Vert.x into its core.

                  GraalVM pushes the performance boundaries even further with the ability to perform ahead-of-time native compilation so we can reach an incredible small memory-footprint and fast bootup-times that we need for our microservices architecture.

                  See more
                  Apache FreeMarker logo

                  Apache FreeMarker

                  163
                  64
                  0
                  A free Java-based template engine
                  163
                  64
                  + 1
                  0
                  PROS OF APACHE FREEMARKER
                    Be the first to leave a pro
                    CONS OF APACHE FREEMARKER
                      Be the first to leave a con

                      related Apache FreeMarker posts

                      Остап Комплікевич

                      I need some advice to choose an engine for generation web pages from the Spring Boot app. Which technology is the best solution today? 1) JSP + JSTL 2) Apache FreeMarker 3) Thymeleaf Or you can suggest even other perspective tools. I am using Spring Boot, Spring Web, Spring Data, Spring Security, PostgreSQL, Apache Tomcat in my project. I have already tried to generate pages using jsp, jstl, and it went well. However, I had huge problems via carrying already created static pages, to jsp format, because of syntax. Thanks.

                      See more
                      Thymeleaf logo

                      Thymeleaf

                      160
                      240
                      2
                      A template engine for Java
                      160
                      240
                      + 1
                      2
                      PROS OF THYMELEAF
                      • 2
                        Its delicous
                      CONS OF THYMELEAF
                        Be the first to leave a con

                        related Thymeleaf posts

                        I am consulting for a company that wants to move its current CubeCart e-commerce site to another PHP based platform like PrestaShop or Magento. I was interested in alternatives that utilize Node.js as the primary platform. I currently don't know PHP, but I have done full stack dev with Java, Spring, Thymeleaf, etc.. I am just unsure that learning a set of technologies not commonly used makes sense. For example, in PrestaShop, I would need to work with JavaScript better and learn PHP, Twig, and Bootstrap. It seems more cumbersome than a Node JS system, where the language syntax stays the same for the full stack. I am looking for thoughts and advice on the relevance of PHP skillset into the future AND whether the Node based e-commerce open source options can compete with Magento or Prestashop.

                        See more
                        Остап Комплікевич

                        I need some advice to choose an engine for generation web pages from the Spring Boot app. Which technology is the best solution today? 1) JSP + JSTL 2) Apache FreeMarker 3) Thymeleaf Or you can suggest even other perspective tools. I am using Spring Boot, Spring Web, Spring Data, Spring Security, PostgreSQL, Apache Tomcat in my project. I have already tried to generate pages using jsp, jstl, and it went well. However, I had huge problems via carrying already created static pages, to jsp format, because of syntax. Thanks.

                        See more