Debugging Orika Mapper Generated Classes

Orika Mapper is mapping library that generates mapper classes at runtime, because the classes are generated in memory, it can be pain to debug why generated mapping is not working.

Orika has the an option to output source code for the generated classes

To make sure the source code is written to the filesystem you need to run with this system property


-Dma.glasnost.orika.writeSourceFiles=true


See OrikaSystemProperties class for more details about the various properties

Leave a Reply

Your email address will not be published.