This is a code snippet of how to have a List of Objects as a property of a Data class in a bean.

Assuming that we have RegionData class that is supposed to have a list of CountyData class, then the following bean definition would be needed to add a List of CountyData to the RegionData:

<bean class="de.hybris.platform.commercefacades.user.data.RegionData">
<property name="counties" type="java.util.List&lt;com.slb.facades.address.data.CountyData>"/>
</bean>

Note that the type follows the follwoign syntax:

type=”java.util.List&lt;<DataType>>

Categories: Hybris

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *