title: Ambiguous mapping methods using java Mapstruct
body: <p>I'm working with java Mapstruct to mapping Entities to DTOs</p>
  
  <p>I want to use one mapper from other mapper and both implement the same method with the same signature and because of that I'm getting "Ambiguous mapping methods found for mapping property"</p>
  
  <p>I have already tried to implement the shared method on an interface and then extend the interface on both mappers but the problem remains</p>
  
  <p>I'm guessing I will need to use some kind of qualifier. I searched on google and in the official documentation but I can't figure it out how to apply this technic</p>
  
  <pre><code>// CHILD MAPPER ***
  @Mapper(componentModel = "spring", uses = { })
  public interface CustomerTagApiMapper {
  
  CustomerTagAPI toCustomerTagApi(CustomerTag customerTag);
  
  default OffsetDateTime fromInstant(Instant instant) {
      return instant == null ? null : instant.atOffset(ZoneOffset.UTC);
  }
  } 
  
  // PARENT MAPPER ***
  @Mapper(componentModel = "spring", uses = {  CustomerTagApiMapper.class })
  public interface CustomerApiMapper {
  
  CustomerAPI toCustomerApi(Customer customer);
  
  default OffsetDateTime frmInstant(Instant instant) {
      return instant == null ? null : instant.atOffset(ZoneOffset.UTC);
  }
  }
  </code></pre>