Class CreateOrUpdateSelector

java.lang.Object
org.mapstruct.ap.internal.model.source.selector.CreateOrUpdateSelector

public class CreateOrUpdateSelector extends Object
Selection based on type of method (create - or update method).

Prefers (when present):

  1. create method candidates (methods not containing @MappingTarget) when mapping method is a create method
  2. update method candidates (methods containing @MappingTarget ) when mapping method is an update method
When not present, the remaining (createCandidates when mapping method is update method, updateCandidates when mapping method is a create method) candidates are selected.
Author:
Sjaak Derksen