ModelMapper - Mapping Strategies

40 views
Skip to first unread message

Fernando Jorge Gonçalves

unread,
Jul 10, 2019, 9:14:15 AM7/10/19
to modelmapper
Hi guys,

I am using ModelMapper in a spring API with a single instance of the modelMapper across the code and in some mapping classes I needed to change the mapping strategy from STANDARD to STRICT.
So, in terms of performance, you guys know if there is any kind of impact changing the mapping strategy multiple times in the same instance?

Best Regards,
Jorge

Michał Antkowicz

unread,
Jul 16, 2019, 2:42:02 PM7/16/19
to model...@googlegroups.com
Hello,

why not to create two separate beans one with STANDARD and second with STRICT strategy?

Regards,
Michał

--
You received this message because you are subscribed to the Google Groups "modelmapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modelmapper...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/modelmapper/eacaabea-daf4-417b-a3a1-26de9e5cabf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages