jmapper-framework / jmapper-core

Elegance, high performance and robustness all in one java bean mapper
http://jmapper-framework.github.io/jmapper-core
Apache License 2.0
231 stars 41 forks source link

Mapping metadata information #70

Open vguna opened 7 years ago

vguna commented 7 years ago

Hi.

I'm thinking about switching from Dozer to your mapper. One important aspect that needs to be fulfilled for this is, having information about the actual mappings during runtime.

Currently, I have my DTOs and my Entities where the mapping is done for. I've created a generic way to formulate REST queries (using the DTOs) that are then transformed into JPA queries (Entities) based on the mappings. So e.g. I need to know, that dto.name came from entity.name. Or that dto.address.street came from entity.customer.address.street - including type information.

My question is: is such mapping information currently available via the mapper API?

avurro commented 7 years ago

Hi @vguna, We are working on issue #28 to allow analysis of this type. Currently there are no features that allow it.