You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a deep insert to create a parent entity (UUID as key) and its child via composition, the child will not have the generated UUID of the parent as its backlink but instead a random one.
I'm not sure whether this is a db layer or service layer problem. Here, @cap-js/postgres is used.
Detailed steps to reproduce
Service & entity:
using { cuid } from'@sap/cds/common';
serviceMyService {
entityParent:cuid {
name:String;
child:Composition of one Child;
}
entityChild {
key parent:Association to one Parent;
name:String;
}
}
Description of erroneous behaviour
When using a deep insert to create a parent entity (UUID as key) and its child via composition, the child will not have the generated UUID of the parent as its backlink but instead a random one.
I'm not sure whether this is a db layer or service layer problem. Here, @cap-js/postgres is used.
Detailed steps to reproduce
Service & entity:
Request:
Result:
Details about your project
| @cap-js/asyncapi | 1.0.2 |
| @cap-js/cds-typer | 0.32.1 |
| @cap-js/cds-types | 0.9.0 |
| @cap-js/db-service | 1.17.2 |
| @cap-js/hana | 1.6.1 |
| @cap-js/openapi | 1.1.2 |
| @cap-js/postgres | 1.11.1 |
| @sap/cds | 8.7.1 |
| @sap/cds-compiler | 5.7.4 |
| @sap/cds-dk | 8.7.1 |
| @sap/cds-fiori | 1.3.0 |
| @sap/cds-foss | 5.0.1 |
| @sap/cds-mtxs | 2.5.1 |
| @sap/eslint-plugin-cds | 3.1.2 |
| Node.js | v20.15.0 |
The text was updated successfully, but these errors were encountered: