title: Deep mapping with generics in Dozer
body: <p>I've been struggling with how to map to object with generics in Dozer and have not found anything to aid me after extensive searching. </p>
  
  <p>I'm trying to map some objects that I wrote to some that were created by someone else. I started out using annotations and saw a similar error so I moved to using a mapping file instead. However, it doesn't seemed to have helped.</p>
  
  <p>Here's an example of what I'm trying to accomplish.</p>
  
  <pre><code>public interface MyObject&lt;T extends MyContent&gt; {
     T getData();
  }
  
  public interface MyStaff extends MyContent {
     Demo getDemo();
  }
  
  public interface Demo {
     Name getName();
  }
  
  public interface Name {
    String getFirstName();
    String setFirstName(String firstName);
  }
  </code></pre>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;mapping&gt;
      &lt;class-a&gt;com.example.Staff&lt;/class-a&gt;
      &lt;class-b&gt;com.example.MyObject&lt;/class-b&gt;
      &lt;field&gt;
          &lt;a&gt;firstName&lt;/a&gt;
          &lt;b&gt;data.demo.name.firstName&lt;/b&gt;
      &lt;/field&gt;
  &lt;/mapping&gt;
  </code></pre>
  
  <p>Here's the error I'm seeing:</p>
  
  <pre><code>org.dozer.MappingException: No read or write method found for field (data.demo.name.firstName) in class (interface com.example.MyObject)
  </code></pre>
  
  <p>I've tried another of permutations (using concrete classes rather than interfaces, for example) and nothing works.</p>