Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/careem/converter-codegen

A Java library that auto-generates converters.
https://github.com/careem/converter-codegen

annotation-processing converter java spring

Last synced: 25 days ago
JSON representation

A Java library that auto-generates converters.

Awesome Lists containing this project

README

        

# converter-annotation-processor

![ci](https://github.com/careem/converter-codegen/workflows/ci/badge.svg?branch=0.6.x)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.careem/converter-annotation-processor.svg?label=Maven%20Central)](https://search.maven.org/artifact/io.github.careem/converter-annotation-processor)

> A Java library that auto-generates converters.

![screenshots](https://raw.githubusercontent.com/careem/converter-codegen/gh-pages/img/screenshots.gif)

## Setup

Add the following dependency in your `pom.xml` file:
```xml

io.github.careem
converter-annotation-processor
0.7.2

```
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](https://careem.github.io/converter-codegen/usage) for more.

## Contributing

Please visit [contributing](https://careem.github.io/converter-codegen/contributing).