Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve passing target type example #3504

Open
xenoterracide opened this issue Jan 3, 2024 · 0 comments
Open

Improve passing target type example #3504

xenoterracide opened this issue Jan 3, 2024 · 0 comments

Comments

@xenoterracide
Copy link

xenoterracide commented Jan 3, 2024

Use case

After reading https://mapstruct.org/documentation/stable/reference/html/#passing-target-type I found myself unable to get what I felt was a modified version of the example to ever generate a usage of the resolver. The example is hard to understand and uses of generic terms like Reference which I'm sure is a class in many frameworks makes it even harder. After further discussion I don't even understand the purpose of this particular feature. To me it feels like a solution in want of a problem given other features. I'm certain I'm wrong, but from the documentation I can't tell why. The code in the example is also insufficient to actually reproduce the behavior that is generated.

Please improve the example and the use case for the example in the documentation.

More context can be found in, but the request was considered too opaque to understand. #3476

Generated Code

.

Possible workarounds

.

MapStruct Version

1.5.5

@filiphr filiphr added this to the 1.6.0.Beta2 milestone Jan 28, 2024
@filiphr filiphr modified the milestones: 1.6.0.Beta2, 1.6.0.RC1 May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants