Populators, Converters and WsDTO concept in SAP Commerce(Hybris)

Why we need them?

Steps for defining Converters and Populators(Example with ProductData):

WsDTO concept

<bean parent="fieldSetLevelMapping" id="productWsDTOFieldSetLevelMapping">
<property name="dtoClass"
value="de.hybris.platform.commercewebservicescommons.dto.product.ProductWsDTO"/>
<property name="levelMapping">
<map>
<entry key="BASIC"
value="purchasable,codeShort,stock,name,baseProduct,availableForPickup,code,url,price,description,images(DEFAULT),availableUnits,potentialPromotions(DEFAULT),summary"/>
<entry key="DEFAULT"
value="code,codeShort,name,url,description,summary,favourite,baseProduct,availableUnits,baseUnit,price(DEFAULT),images(DEFAULT),potentialPromotions(DEFAULT),classifications(DEFAULT),breadcrumbs,crmProductInformations,promotion"/>
<entry key="FULL"
value="code,summary,productReferences(FULL),classifications(FULL),averageRating,purchasable,volumePrices(FULL),variantType,stock(FULL),description,variantMatrix(FULL),codeShort,name,favourite,availableUnits,baseUnit,breadcrumbs,crmProductInformations,baseOptions(FULL),baseProduct,availableForPickup,variantOptions(FULL),reviews(FULL),code,url,price(FULL),numberOfReviews,manufacturer,volumePricesFlag,futureStocks(FULL),images(FULL),categories(FULL),potentialPromotions(FULL),priceRange,multidimensional"/>
</map>
</property>

</bean>

--

--

--

Software Development Lead @Coca-Cola HBC

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Matlotlib 따라해보기

Google Cloud Badges: The Journey so far…

Why Should You Start Working on Projects

Working on computer with accessories aside

Best WooCommerce Shipping Calculator — Table Rate Shipping Pro

[Backend] Settings on GCP

Supporting Pre-Peak Scale-up and Post-Peak Scale-Down with DBFS

innerHtml vs insertAdjacentHtml

Evangelicalism in America is nearing extinction due to the movement’s devotion to politics at the…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nuray Fahri

Nuray Fahri

Software Development Lead @Coca-Cola HBC

More from Medium

Anonymous Inner Classes

Head First Java (Chapter 03) Know Your Variables

Interfaces and abstract classes

Java extension mechanism — Self discovery & bean instantiation