Skip to content

Commit

Permalink
Automated deployment: Sun Jul 21 10:29:14 UTC 2024 bc9c2bc
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphr committed Jul 21, 2024
1 parent 0b73e78 commit ed17aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion faq/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ <h2 id="How-to-solve-ambiguous-methods"><a class="ms-header-link" href="#How-to-
<li>2 step method, variant 2: <code>target = methodY( conversionX ( source ) )</code></li>
<li>2 step method, variant 3: <code>target = conversionY( methodX ( source ) )</code></li>
</ol>
<p>Whenever MapStruct finds a unique candidate, MapStruct stops and uses this method to make the mapping between source and target. However, for option 1, 5, 6, 7 it is possible that multiple eligible candidtates are found for which MapStruct cannot decide which one to select. MapStruct reports this as &ldquo;ambiguous mapping method&rdquo; and lists the methods from which it cannot make a selection. Here, you have to guide MapStruct in making the correct mapping.</p>
<p>Whenever MapStruct finds a unique candidate, MapStruct stops and uses this method to make the mapping between source and target. However, for option 1, 5, 6, 7 it is possible that multiple eligible candidates are found for which MapStruct cannot decide which one to select. MapStruct reports this as &ldquo;ambiguous mapping method&rdquo; and lists the methods from which it cannot make a selection. Here, you have to guide MapStruct in making the correct mapping.</p>
<p>This can be done in the following ways:</p>
<ul>
<li>provide a method with the exact signature if MapStruct cannot select between base- and super types.</li>
Expand Down

0 comments on commit ed17aa6

Please sign in to comment.