What is the main goal of domain modeling in the SAP Cloud Application Programming Model?
The main goal is to keep your domain models clean, concise, and comprehensible by factoring out technical aspects and separating concerns.
What are the two major paradigms followed by the SAP Cloud Application Programming Model?
A declarative paradigm using Core Data Services (CDS) to capture knowledge about problem domains.
A service-centric paradigm, with widespread usage of Services, Events, and Queries.
What is Core Data Services (CDS)?
CDS is a universal modeling language
used to capture both static and behavioral aspects of problem domains
conceptual, concise, and comprehensible way
backbone of the SAP Cloud Application Programming Model.
What benefits does Model Reuse provide in domain modeling?
Model Reuse provides benefits like:
concise and comprehensible models
interoperability between all applications
capturing proven best practices from real applications
streamlined data models
optimized implementations and runtime performance.
What are Aspects in domain modeling?
reusable models
factoring out of cross-cutting or technical concerns into separate models or files,
helps in keeping core domain models clean and comprehensible.
What are Common Aspects and name the three built-in ones?
Common Aspects are predefined aspects ready for reuse
"cuid,"
"managed,"
"temporal."
What does the Aspect 'cuid' do?
-add a universally unique primary
What is the purpose of localization in Domain Modeling?
Localization adapts your business application to different languages to cater to specific regional markets. It is important for anything visible in the UIs.
How is localization for static content achieved?
i18n files
What is the method to achieve localization for dynamic content?
Localization for dynamic content is achieved by marking the attributes that need to support multiple languages with a special keyword called "localized." This creates a text table for each entity with attributes defined as "localized."
What is the purpose of a Namespace in CDS?
Namespaces are used to help arrive at unique names. This helps in keeping the code clean by avoiding the use of fully qualified names.
What do Entities represent in CDS?
Entities represent data that can be read and written by consumers. They are uniquely identified by their primary keys. For example, Products and Suppliers can be defined as Entities.
What are Types in CDS?
Types describe the types of elements within entities. Various built-in types are provided, such as Integer, Decimal, and UUID. UUIDs are auto-generated IDs.
What do Associations do in CDS?
Associations capture relationships between entities. For instance, the Entity "Products" can be associated with the Entity "Supplier."
What are Compositions used for in CDS?
Compositions are used to model document structures through "contained-in" relationships.
For example, in the definition of "Suppliers," the "Products" composition refers to the "Products" entity.
What is the difference between Associations and Compositions in CDS?
Associations capture relationships between separate entities
while Compositions are used to model document structures and often indicate a "contained-in" relationship between entities.
Explain the role of CDS in between App developement and Run Time
CDS is a technique to create persistence layer
model is defined in .cds files during dev
during built and deploy tables are created accordingly
automatic migration on redeploy
Last changeda year ago