Tag: Dozer

Dozer Deep Property Mapping and Date Mapping Example

Dozer has Deep Mapping and String to Date Mapping available. This is a working example of using the two. The bread and butter lives in the Dozer.xml <?xml version=”1.0″ encoding=”UTF-8″?> <mappings xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns=”http://dozer.sourceforge.net” xsi:schemaLocation=”http://dozer.sourceforge.net http://dozer.sourceforge.net/schema/beanmapping.xsd”> <mapping> <class-a>com.recursivechaos.mappingtest.domain.SourceObj</class-a> <class-b>com.recursivechaos.mappingtest.domain.DestObj</class-b> <field> <a>nestedEnum.myEnum.value</a> <b>myEnum</b> </field> <field> <a>longDate</a>

Posted in Examples Tagged with: ,