DEV Community

loading...

Creating a simple mapper for java

saif ali
401 Not Authorized
・1 min read

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

Discussion (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 Author

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 Author

Will write a complete readme for that