title: Dozer Mapping of deep Property mapping
body: <p>I am a newbie to Dozer and have these three classes </p>
  
  <pre><code>class PersonEntity {
      Set&lt;AddressEntity&gt; addresses; 
  }
  
  class Person {
      AddressList addresses;
  }
  
  class AddressList {
      List&lt;Address&gt; address;
  }
  </code></pre>
  
  <p>Is there a way to get dozer mapping written for this?</p>
  
  <p>Here is what I have so far</p>
  
  <pre><code>&lt;mapping&gt;
      &lt;class-a&gt;domain.entity.AddressEntity&lt;/class-a&gt;
      &lt;class-b bean-factory="org.dozer.factory.JAXBBeanFactory"&gt;
          com.rackspace.customer.Address
      &lt;/class-b&gt;
  
      &lt;field&gt;
          &lt;a get-method="isPrimary"&gt;isPrimary&lt;/a&gt;
          &lt;b set-method="setPrimary"&gt;primary&lt;/b&gt;
      &lt;/field&gt;
  &lt;/mapping&gt;
  
  &lt;mapping&gt;
      &lt;class-a&gt;domain.entity.PersonEntity&lt;/class-a&gt;
      &lt;class-b bean-factory="org.dozer.factory.JAXBBeanFactory"&gt;com.rackspace.customer.Contact&lt;/class-b&gt;
  
      &lt;field&gt;
          &lt;a&gt;userId&lt;/a&gt;
          &lt;b&gt;username&lt;/b&gt;
      &lt;/field&gt;
  
      &lt;field custom-converter="domain.converter.PersonNumberAdapter"&gt;
          &lt;a&gt;personNumber&lt;/a&gt;
          &lt;b&gt;contactNumber&lt;/b&gt;
      &lt;/field&gt;
  
      &lt;field&gt;
          &lt;a&gt;addresses&lt;/a&gt;
          &lt;b&gt;addresses.address&lt;/b&gt;
          &lt;a-hint&gt;domain.entity.AddressEntity&lt;/a-hint&gt;
          &lt;b-hint&gt;com.rackspace.customer.Address&lt;/b-hint&gt;
      &lt;/field&gt;
  &lt;/mapping&gt;
  </code></pre>
  
  <p>How do you tell the second mapper to reuse existing mapper for converting AddressEntity to Address and vice versa?
  This does not work, can someone help me?</p>