You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to minimise primitive obsession, I like to define my domain models with strong types down to the last leaf, e.g. record CustomerId(UUID value). When using these types as Mapping targets, I end up having to define a bunch of pretty pointless Mappers in this style:
What I'd love for MapStruct to do is considering CustomerId.class as possible Mapper via the uses attribute in these cases. Any chance we could implement this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In order to minimise primitive obsession, I like to define my domain models with strong types down to the last leaf, e.g.
record CustomerId(UUID value). When using these types as Mapping targets, I end up having to define a bunch of pretty pointless Mappers in this style:What I'd love for MapStruct to do is considering
CustomerId.classas possible Mapper via theusesattribute in these cases. Any chance we could implement this?Beta Was this translation helpful? Give feedback.
All reactions