ro0sterjam
ro0sterjam
Hey @filiphr I'm not sure if my current implementation of #3183 will enable the functionality that @jbesta is looking for, as my PR only addresses the `Optional` type. I think...
> > That is to say, `ContainerA -> ContainerB` could technically be written as 3 steps: > > `ContainerA -> UserRequest` > > `UserRequest -> UserDto` > > `UserDto ->...
I see @filiphr; that said, would the MapStruct team be opposed to a 2+ (let's say, 3) step mapping support? I've been working on something yesterday that would unlock an...
@xak2000 > It's actually OK to write mapper of Page to PageDto manually. It is often even preferred as usually the mapping logic of such wrapper objects could be more...
> I wouldn't go down a path of more than 2 step mapping. The 2 step mapping is adding complexity to the code already and it is a performance hit...
Hey @filiphr, throwing in my contender for this feature into the ring https://github.com/mapstruct/mapstruct/pull/3183 My fix takes the approach that @michalkowol mentioned, as it personally felt like the more natural place...
> Hi @ro0sterjam it would be very nice to add an option to configure the target null transformation from this > > Source Type Target Type Source Value Target Value...
> @ro0sterjam just out of curiosity: is this going to change how we currently handle `Optional`. There might be may users out there which already have their own way of...
Re: `null` mapping I think it's worth looking at how Jackson approaches `Optional` mapping, which actually seems to be [configurable](https://github.com/FasterXML/jackson-datatype-jdk8/blob/master/src/main/java/com/fasterxml/jackson/datatype/jdk8/Jdk8Module.java#L54). This configuration `configureAbsentsAsNulls` by default is `false`. The difference in...
> I finally managed to find the time to review this in detail. I really like the direction where this is going. Thanks for your work on it @ro0sterjam. >...