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<com.slb.facades.address.data.CountyData>"/>
</bean>
Note that the type follows the follwoign syntax:
type=”java.util.List<<DataType>>“
0 Comments