mapping without any config?

37 views
Skip to first unread message

Rick LaBanca

unread,
Aug 4, 2015, 4:34:24 PM8/4/15
to JMapper Framework
I use orika for mapping, and my classes have many fields and are named identically. With orika it will by default map these without any other specification. Is there such a thing in jmapper?

I also use orika as a general cloner for this reason, it's a lot faster than clone libs. Was thinking of doing the same with jmapper.

Alessandro Vurro

unread,
Aug 4, 2015, 5:16:39 PM8/4/15
to JMapper Framework
Il giorno martedì 4 agosto 2015 22:34:24 UTC+2, Rick LaBanca ha scritto:
> I use orika for mapping, and my classes have many fields and are named identically. With orika it will by default map these without any other specification. Is there such a thing in jmapper?
>
>
> I also use orika as a general cloner for this reason, it's a lot faster than clone libs. Was thinking of doing the same with jmapper.

With JMapper you need to put on class the @JGlobalMap annotation (https://github.com/jmapper-framework/jmapper-core/wiki/Global-Mapping). However JMapper works with references, the mapping between two identical bean has no sense, the cloning is not supported.
Reply all
Reply to author
Forward
0 new messages