Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate separate types for aspect relationships #41

Open
stockbal opened this issue Sep 29, 2022 · 1 comment
Open

Generate separate types for aspect relationships #41

stockbal opened this issue Sep 29, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@stockbal
Copy link

Hi all,

it would be benefitial if aspect relationships like the following

aspect adminData {
    createdby : User      @cds.on.insert : $user;
    createdon : Timestamp @cds.on.insert : $now;
}

entity Foo : adminData {
   key ID : UUID;
}

would be reflected in the generated types as well.
e.g.

  export interface adminData {
     createdby: string;
     createdon: Date;
  }

  export interface Foo extends adminData {
    ID: string;
  }

Regards,
Ludwig

@thisisevanfox
Copy link
Collaborator

Hi @stockbal,

Thanks for the proposal. We will add this to our list, but we can't give any details by when and if we will implement this feature.

Regards
Johannes

@thisisevanfox thisisevanfox added the enhancement New feature or request label Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants