Collections and Relations


After completing this lesson, you will be able to:

  • Discover ways to differentiate between a Collection and a Relation to define multi-value attributes in the SAP Commerce Type System

Collections and Relations

Since we have learned  about the SAP Commerce Type System and the items.xml file, it’s useful to extend your understanding of two generic types: collection and relations. They can be used to support multi-value attributes.

  • Collections may contain multiple elements of the same type and are appropriate when the number of elements is minimal.
  • Relations offer better performance, and allow you to model one-to-many, many-to-one, and many-to-many relationships.

Let’s discover more in the following video.

Log in to track your progress & complete quizzes