Skip to content

aboutbits/mapstruct-extensions

Repository files navigation

Mapstruct extensions

Some customizations for mapstruct

Setup

Add this library to the classpath by adding the following maven dependency. Versions can be found here

<dependency>
    <groupId>it.aboutbits</groupId>
    <artifactId>mapstruct-extensions</artifactId>
    <version>x.x.x</version>
</dependency>

CustomAccessorNamingStrategy

The CustomAccessorNamingStrategy.java adds support for Lombok's @With methods. By default, Lombok would treat these generated functions as accessors and would try to map them.

Local Development

To use this library as a local development dependency, you can simply refer to the version BUILD-SNAPSHOT.

Check out this repository and run the maven goal install. This will build and install this library as version BUILD-SNAPSHOT into your local maven cache.

Note that you may have to tell your IDE to reload your main maven project each time you build the library.

Build & Publish

To build and publish the chart, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.

Information

About Bits is a company based in South Tyrol, Italy. You can find more information about us on our website.

Support

For support, please contact info@aboutbits.it.

Credits

License

The MIT License (MIT). Please see the license file for more information.

About

Mapstruct extensions like custom naming strategies.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages