Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Generated classes (both for singular and plural) will now contain a static
.name
property which contains the fully qualified name of the entity it was generated from.⬇️ (more or less)
This allows the class and its transpiled form to be used as parameter for CDS functions that expect CSN definitions. Those will look for a
.name
property and use that as lookup key in the compiled CSN.This PR is therefore a step towards using the transpiled
index.js
files in a TypeScript context.Note that
.name
is actually a reserved name, so we have to forcefully inject it into the generated classes. This does not seem to be an issue, but should be kept an eye on.