title: Custom setter to be used in MapStruct
body: <p>I have been looking through the <a href="https://mapstruct.org/documentation/stable/reference/html/" rel="nofollow noreferrer">MapStruct documentation</a> without any success. </p>
  
  <p>I am implementing a mapping between my Domain classes and my DTO classes; using <em>MapStruct</em>. In my domain, I do not want to use Setters for my fields because, we know that today <strong>Setters are bad</strong> (for many reasons, but that's not the topic of my question).</p>
  
  <p>However when I want to convert <code>ItemDto</code> into <code>Item</code>, I got the following message :</p>
  
  <pre><code>Error:(17, 21) java: Property "name" has no write accessor in my.example.Item.
  </code></pre>
  
  <p>However my class <code>Item</code> has a Business method <code>void changeName(String newName)</code> that I would like to use in my Mapper.</p>
  
  <p>The code of my Mapper is : </p>
  
  <pre><code>@Mapper
  public interface MyMapper {
  
      @Mapping(source="nameDto", target = "name")
      Item map(ItemDto dto);
  }
  </code></pre>
  
  <p>My question is quite simple : how to specify StructMap to use  <code>changeName</code> as write accessor ?</p>
  
  <p>Thanks for your help.</p>