Defining Enum and Map types in Hybris

Enum Type Enum types are used to define the set of constant values. Example: Set of Color like Red,Blue and Set of status like Created,InProgress,Submitted etc. Enum for Gender to specify Male or Female <enumtype code="Gender" autocreate="true" generate="true">             <value code="MALE"/>             <value code="FEMALE"/> </enumtype> […]

Share this article on

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
< Previous Next >