Analyzing the Type System in SAP Commerce Cloud

Objective

After completing this lesson, you will be able to discover how the Type System manages data exchange between application layers.

The Type System

Following a model-driven methodology, the SAP Commerce Type System acts as an intermediary between Java business logic and the database.

XML type definitions are used to create the corresponding Java classes during the next build, and to generate database tables during the next system update.

In the following video, explore the concepts and methodology of the SAP Commerce Type System to understand how it bridges Java business logic and the database.

Now that you are familiar with the underlying concepts, the next video takes a closer look at items.xml, the most important files used to manage the type definitions of the SAP Commerce Type System.

Summary

  • The SAP Commerce Type System bridges Java business logic and the database by defining abstract entities and their structure.
  • The Type System supports several kinds of types, including item types (composed types), atomic types, collection types, enumeration types, map types, and relation types (one-to-many or many-to-many).
  • These types are declared in items.xml files, which the ant build combines to generate Java classes; database tables are created or altered when the system is initialized or updated.