When it comes to modernizing the applications, migrating to Mapstruct from Dozer mapper is one of the primary part for most of the Java enterprise applications that are running successfully for more than a decade.
This Intellij plugin will help us to do the migration faster by generating mapstruct code for the dozer xml.
- It's available in jetbrains market place.
- Compatible versions are 2022.2 and above only.
- Select the xml code.
- press Ctrl + Shift + ` shortcut and provide the details.
- Code will be generated at the specified location.
- Map-id at field levels are added.
- Uncheck the checkBok to avoid writing and just view the generated code in pop up.
Alternate,
- Just right click on selected text click on GenerateMapping which appears first on popup menu.
If you find things to be improved, feel free to make your contributions by raising issues/PRs.