Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/careem/converter-codegen
- Owner: careem
- License: apache-2.0
- Created: 2020-05-29T07:06:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T14:40:17.000Z (about 1 month ago)
- Last Synced: 2024-11-26T15:34:37.952Z (about 1 month ago)
- Topics: annotation-processing, converter, java, spring
- Language: Java
- Homepage: https://careem.github.io/converter-codegen/
- Size: 426 KB
- Stars: 5
- Watchers: 56
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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:
```xmlio.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).