SAP CAP Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
qmacro
Developer Advocate
Developer Advocate
1,107

In domain modelling, we can have name prefixes for the components of our models. They're optional, but useful, especially if reusability is a factor. This prefixing can be defined with either the namespace or the context directives, or a combination thereof. The latter directive is useful for nested namespace sections.

Regard this sample CDS model definition:

namespace outer.space;

context challenge {
  entity main.Books {
    key ID    : Integer;
        title : String;
  }
}

What is the fully qualified name of the entity here?

This is a question from the June Developer Challenge on CAP Knowledge. And don't forget: always submit your answer as a hash, on its own - read the Taking part section of the intro post for more info. At the end of today, this question will be updated with links to further reading on this topic.

18 Comments