orika-mapper / orika

Simpler, better and faster Java bean mapping framework
http://orika-mapper.github.io/orika-docs/
Apache License 2.0
1.29k stars 268 forks source link

零到多层循环源节点到目标节点的转换问题。Conversion problem from zero to multi-layer loop source node to target node #363

Open bawfnje opened 3 years ago

bawfnje commented 3 years ago

我应用orika需要在零到多层循环源节点到零到多层目标节点的转换。例如(I use orika and need to convert from zero to multi-layer loop source node to zero to multi-layer target node. E.g): A.B =》C.D{E} A.B =》C.D{E{F}} A.B =》C.D{E{F{G}}} 反之(in contrast): A.B{C} =>D.E A.B{C{D}} => E.F A.B{C{D{E}}} => F.G 我使用最新的版本,验证失败,@elaatifi 请问orika支持这种情况吗,还是我配置的有问题(I use the latest version, the verification fails, @elaatifi Does orika support this situation, or is there a problem with my configuration): ClassMapBuilder.fieldMap("A.B","C.D{E}");

heshang233 commented 3 years ago

Your example is too bad. 哥们儿直接放代码例子吧,我觉得应该是支持的。