Replies: 1 comment
|
Hi, One possibility is to overwrite @cds.persistence.exists flag and set it to false for local development using profiles. "cds": {
"requires": {
"db": {
"[development]": {
"model": "db/sqlite"
}
}
}
},This configuration can be stored in a .cdsrc.yaml/json file too. Add a new cds file in directory db/sqlite and overwrite @cds.persistence.exists annotate bookshop.Books with @cds.persistence.exists:false;As a result when starting the service with cds watch, the development profile will be activated, which references the newly created file with the annotation. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
We are a big consumer of facade entities (using the annotation @cds.persistence.exists)
those entities are replicated from the ERP backend with SDI into another HDI container and reference with synonym
however using CDS watch (using dev profile), there is no way to mock those entities
are we missing something?
thanks
All reactions