Code generation for mapper functions (or a best effort) when classes are similar, is there already a...
f
Code generation for mapper functions (or a best effort) when classes are similar, is there already a AS plugin for that?
😶 2
j
I would go further and just use generation library which will keep your classes up to date
f
But they’re not one on one the same…
j
that's why those libraries allow you to configure what's different. They can map between types and different field names. They can even flatten nested classes
👀 1
just try it
f
I don’t like adding more annotation/classes. I’m going for Github Copilot.
j
Do what you want, i'm just giving you an option that will automatically inform you about issues further the line. And will rarely require manual change. But if you want to keep this code yourself - your call