2. Dozer Configuration

Custom mappings between classes and fields can be defined here, including referencing Spring custom converters can be defined in the placeholder config dozer-mappings.xml. Currently there is just a custom converter for Joda DateTime registered in dozer-joda-mappings.xml.

dozer/dozer-joda-mappings.xml in Spring by Example REST Module

                
<?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>