Skip to Content
0
Nov 17, 2014 at 11:33 AM

ProductData mapping ProductWsDTO: WebService V2

497 Views

How is ProductData mapped to ProductWsDTO in Webservice V2, since I can see FieldMapper for CustomerData:

 <bean parent="fieldMapper">
         <property name="sourceClass"
                   value="de.hybris.platform.commercefacades.user.data.CustomerData"/>
         <property name="destClass"
                   value="de.hybris.platform.commercewebservicescommons.dto.user.UserWsDTO"/>
         <property name="fieldMapping">
             <map>
                 <entry key="defaultShippingAddress" value="defaultAddress"/>
             </map>
         </property>
     </bean>


And also if we knew where this mapping was made, how is Hybris Converting ProductData to ProductWsDTO? Since I don't see any Converter/Populator for doing this. Is it Orika doing it by matching attribute names in the two?