Defining Relation in items.xml in Hybris

Relation types help us to maintain the m:n relation between 2 tables. Let’s consider 2 possible cases in relation Case 1: One to Many/Many to One One user can have any number of contacts <relation code="User2ContactInfos" generate="true" localized="false" autocreate="true">             <sourceElement type="User" cardinality="one" qualifier="user">             […]

Share this article on

Collection v/s relation in Hybris

We know that Collection can be used as an alternative for OneToMany relation But in that case, why do we go for Relation sometimes and why do we go for collection some other times? Let’s see in detail what happens when we go for collection and what happens when we go for relation. Requirement : […]

Share this article on