converter-annotation-processor
A Java library that auto-generates converters.
Setup
Add the following dependency in your pom.xml
file:
<dependency>
<groupId>io.github.careem</groupId>
<artifactId>converter-annotation-processor</artifactId>
<version>0.7.0</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 onClassB
mvn clean install ...
ClassAToClassBConverter
gets auto-generated!
Please visit usage for more.
Contributing
Please visit contributing.