title: Orika mapper when one of the properties is an enum that has different supported values for the two classes
body: <p>I have an object say <code>Source</code> that has fields like;</p>
  
  <pre><code>firstName,
  lastName,
  type   (enum with possible values as "RED", "GREEN", "BLUE")
  ..
  ..
  </code></pre>
  
  <p>I have another object <code>Dest</code> that has fields like;</p>
  
  <pre><code>firstName
  lastName
  type   (enum with possible values as "RED", "GREEN", "PURPLE")
  ..
  ..
  </code></pre>
  
  <p>I want to copy <code>Source</code> into <code>Destination</code> and using <code>Orika</code> for that</p>
  
  <pre><code>MapperFacade mapper = mapperFactory.getMapperFacade();
  Dest dest = mapper.map(src, Dest.class);
  </code></pre>
  
  <p>Now when <code>src.getType=BLUE</code>, then, I get <code>MappingException</code> because type in <code>Dest.class</code> does not support <code>BLUE</code> value.</p>
  
  <p>I do not have an option to change the values supported by the enums for the two classes. But at the same time, I need to find a way to be able to copy over the values of other properties. I need a way so it can ignore copying over value for <code>type</code> (that gives a mapping exception for a value that is not supported by the other enum) and still copy over the other values. I tried using "exclude" but it doesnt really resolve the issue. Any ideas on how to fix the issue?</p>