Use case
The qualified by name can be used without a source param. This will help to create a single method that can be used across the other mapping methods.
e.g.,
@Named("getInstant") default Instant getInstant() { return Instant.now(); }
`@Mapping(target = "addedAt", source = "data", qualifiedByName = "getInstant")`
This has a huge advantage of code reusability.
Generated Code
No response
Possible workarounds
No response
MapStruct Version
1.5.2.Beta2