title: Jackson deserialization: Can I inject a value with an annotation on the field of the to deserializable object?
body: <p>I have an object like this to deserialize:</p>
  <pre><code>public class RelationsInput {
  
     Relation relation1;
  
     Relation relation2;
  
  }
  </code></pre>
  <p>whereas the class <code>Relation</code> looks like this:</p>
  <pre><code>public class Relation {
  
     RelationType relationtype;
     ... (more fields)
  
  }
  </code></pre>
  <p><code>RelationType</code> is en enum and is not a value which will be deserialized, while all others are.</p>
  <p>Is it possible, that I could &quot;inject&quot; the enum value for the field <code>relationType</code> with an annotation on the field in the class <code>RelationInput</code>?
  Like the following</p>
  <pre><code>
  public class RelationsInput {
  
     @RelationType(RelationType.OWNER)
     Relation owner;
  
     @RelationType(RelationType.TENANT)
     Relation tenant;
  
  }
  </code></pre>
  <p>Does Jackson provide something like this?</p>