2. Dozer Configuration

Custom mappings between classes and fields can be defined here, including referencing Spring custom converters. Currently there is just a custom converter for Joda DateTime registered.

dozer/dozer-mappings.xml
                
<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns="http://dozer.sourceforge.net" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://dozer.sourceforge.net
                              http://dozer.sourceforge.net/schema/beanmapping.xsd">

    <configuration>
        <custom-converters> 
            <converter type="org.springbyexample.converter.DateTimeConverter">
                <class-a>org.joda.time.DateTime</class-a>
                <class-b>org.joda.time.DateTime</class-b>
            </converter>
        </custom-converters>
    </configuration>

</mappings>