Open dimrat opened 1 month ago
Hi @dimrat,
currently there is no convenient modeling approach available, that solves your issue. We will transform this bug report to a feature request and will discuss, how a proper solution for this (and similiar) issue(s) could look like.
For the time being, I have created a workaround which does the following:
server.js
hijack the timestamp elements and attach a dummy value
property to them → This mocks a calculated element which are by default not inserted into the databaseBook
tableI hope this helps you for now, we will keep you updated with what real solution we come up with.
BR Patrice
Description of erroneous behaviour
We are using HANA System Versioning in combination with CAP. When we switch to CAP8 and @cap-js/hana respectively, we cannot insert new data anymore, because the way the SQL is generated conflicts with hana system versioning. More precisely, if we try to make a simple post request on a system versioned entity, e.g.
we are getting the following error
Detailed steps to reproduce
Details about your project
| @cap-js/asyncapi | 1.0.2 | | @cap-js/openapi | 1.0.6 | | @sap/cds | 8.3.0 | | @sap/cds-compiler | 5.3.0 | | @sap/cds-dk (global) | 8.3.0 | | @sap/cds-fiori | 1.2.7 | | @sap/cds-foss | 5.0.1 | | @sap/cds-mtxs | 2.2.0 | | @sap/eslint-plugin-cds | 3.1.0 | | Node.js | v20.17.0 |