{"id":765,"date":"2018-12-20T01:45:59","date_gmt":"2018-12-20T01:45:59","guid":{"rendered":"http:\/\/choudhury.com\/blog\/?p=765"},"modified":"2018-12-20T01:46:02","modified_gmt":"2018-12-20T01:46:02","slug":"debugging-orika-mapper-generated-classes","status":"publish","type":"post","link":"https:\/\/choudhury.com\/blog\/2018\/12\/20\/debugging-orika-mapper-generated-classes\/","title":{"rendered":"Debugging Orika Mapper Generated Classes"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/orika-mapper\/orika\">Orika Mapper<\/a> 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.<\/p>\n\n\n\n<p>Orika has the an option to output source code for the generated classes<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To make sure the source code is written to the filesystem you need to run with this system property<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">-Dma.glasnost.orika.writeSourceFiles=true<\/div><\/div>\n\n<\/pre>\n\n\n\n<p><br><\/p>\n\n\n\n<p>See OrikaSystemProperties class for more details about the various properties<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"428\" src=\"https:\/\/choudhury.com\/blog\/wp-content\/uploads\/2018\/12\/orika-system-properties.jpg\" alt=\"\" class=\"wp-image-769\" srcset=\"https:\/\/choudhury.com\/blog\/wp-content\/uploads\/2018\/12\/orika-system-properties.jpg 848w, https:\/\/choudhury.com\/blog\/wp-content\/uploads\/2018\/12\/orika-system-properties-300x151.jpg 300w, https:\/\/choudhury.com\/blog\/wp-content\/uploads\/2018\/12\/orika-system-properties-768x388.jpg 768w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/choudhury.com\/blog\/2018\/12\/20\/debugging-orika-mapper-generated-classes\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Debugging Orika Mapper Generated Classes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-765","post","type-post","status-publish","format-standard","hentry","category-java"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/posts\/765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/comments?post=765"}],"version-history":[{"count":7,"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/posts\/765\/revisions"}],"predecessor-version":[{"id":773,"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/posts\/765\/revisions\/773"}],"wp:attachment":[{"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/media?parent=765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/categories?post=765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/choudhury.com\/blog\/wp-json\/wp\/v2\/tags?post=765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}