msundari
msundari
Hi @sjaakd , I am using mapstruct for mapping hierarchical data (both source and target have multi level objects). The problem I have is , the target objects are getting...
Hi Filip, I raised this issue https://github.com/mapstruct/mapstruct/issues/1303. It is closed as duplicate of this issue. (https://github.com/mapstruct/mapstruct/issues/879 ) As you suggested in issue 1303, I tried using 1.2.0.CR2 with NullValueCheckStrategy.ALWAYS ....
@sjaakd , I tried but it dint not work as expected. BeanMapping(nullValueMappingStrategy = NullValueMappingStrategy.RETURN_DEFAULT) void mapCustomer(Customer customer, @MappingTarget UserDTO userDTO); Still it was setting target to null