DEV Community

saif ali
saif ali

Posted on

Creating a simple mapper for java

I have posted before a custom java annotation and I thought of making it enhance and making it as open source project,

https://github.com/saifali40/mapper

Top comments (4)

Collapse
 
dgbrewer1989 profile image
David Brewer

Interesting. What exactly is the use case for using the .reverse method? Wouldn't you just be able to utilize the map method for the same thing?

Collapse
 
saifali40 profile image
saif ali

That's to convert the dto to model. In case if you are receiving the response in dto you can use reverse method that will give you the model back. Currently the benchmark is not good. I have couple of ideas to improve the benchmarks too.

Collapse
 
dgbrewer1989 profile image
David Brewer

Ah I see. Okay I didn't completely understand its purpose is all. Seems like a nice small implementation of a mapper.

Thread Thread
 
saifali40 profile image
saif ali

Will write a complete readme for that