Skip to content

Conversation

@TrianguloY
Copy link
Contributor

Based on this discussion (https://groups.google.com/g/mapstruct-users/c/dM_ZGPJ_JlU/m/K8Gh0gybBQAJ) it appears that exists a non-written (?) rule saying that the standard way to write mappings is target, source (and not source, target).

A previous PR (mapstruct/mapstruct#2369) fixed the web documentation, but the example code on this repo remained unchanged.

This pr's purpose is just to switch the @Mapping(source,target) into @Mapping(target,source).
But additionally, for consistency, I also changed the @ValueMapping(source,target) into @ValueMapping(target,source). If this second change is not desired, I can just revert that individual commit.

@filiphr filiphr merged commit 4ce3552 into mapstruct:main May 10, 2025
@filiphr
Copy link
Member

filiphr commented May 10, 2025

Thanks @TrianguloY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants