I am mapping the inherited class of source class to another inherited classes of destination using hint in dozer mapping file .But i am getting the null values as well during the mapping.I want to exlcude the properties having the null values . I have used m
<?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">
<mapping map-null="false" map-empty-string="false" wildcard="false">
<class-a m ><source class></class-a>
<class-b map-null="false" map-empty-string="false" ><destination class></class-b>
<field>
<a><source base property> </a>
<b><destination base property></b>
<a-hint>
<source child class 1 extending super class of source base property>,
<source child class 2 extending super class of source base property>,
:
:
<source child class n extending super class of source base property>,
</a-hint>
<b-hint>
< destination child class 1 extending super class of destination base property>,
< destination child class 2 extending super class of destination base property>,
:
:
< destination child class n extending super class of destination base property>,
</b-hint>
</field>
</mapping>
</mappings>
I have some fields in the destination subclasses which are set as null.I want to exclude the properties having null values.
Thanks