Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.14 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.14 KB

converter-annotation-processor

ci Maven Central

A Java library that auto-generates converters.

screenshots

Setup

Add the following dependency in your pom.xml file:

<dependency>
  <groupId>io.github.careem</groupId>
  <artifactId>converter-annotation-processor</artifactId>
  <version>0.7.2</version>
</dependency>

That's it, you are ready to generate converters!

Usage

To generate a ClassA object to ClassB object converter:

  • add @Converter(sourceClass = ClassA.class) annotation on ClassB
  • mvn clean install ...
  • ClassAToClassBConverter gets auto-generated!

Please visit usage for more.

Contributing

Please visit contributing.