crane4j icon indicating copy to clipboard operation
crane4j copied to clipboard

支持基于 MapStruct 的属性映射

Open Createsequence opened this issue 2 years ago • 0 comments

支持基于 MapStruct 的属性映射。

第一种思路,是类似 MapStructPlus 那样,实现自己的注解处理器,以便在编译器直接根据 crane4j 中 @Assemble 注解的 prop 属性、或者 @MappingTemplate 注解去预先的生成 Mapper

第二种思路,是参照目前适配 reflectasm 的思路,提供一个基于 MapStruct 实现的 PropertyOperator,不过介于 MapStruct 本身在编译期就生成了转换器,所以这个思路理论上可行性较低。

Createsequence avatar Feb 26 '23 16:02 Createsequence