{"ref":"content:understanding-entity-relationships-in-cds","page":"/content/understanding-entity-relationships-in-cds","json":"/content/understanding-entity-relationships-in-cds.json","generated":"2026-10-29","drafted_with_ai":true,"entity":{"id":"understanding-entity-relationships-in-cds","title":"Understanding entity relationships in CDS","url":"https://community.sap.com/t5/technology-blog-posts-by-sap/understanding-entity-relationships-in-cds/ba-p/13552921","content_type":"blog","published_on":"source:sap-community","explains":["capability:data-modelling"],"summary":"Models a CAP task-management domain in CDS — Users, Roles, Tasks and Categories joined by to-one associations, a composition of tasks owned by a user, and a self-referencing association from a user to its parent — using the managed and cuid aspects from @sap/cds/common. It then visualises that model in [Business Application Studio](artifact:btp-business-application-studio)'s CDS Graphical Modeler and adds a CAP Java before-handler that sets a generated password on user creation.","author":"Avinash_Vaidya","published":"2022-11-22","provenance":{"discovered_via":[{"source":"source:sap-community","channel":"cap-tag"}],"first_seen":"2026-10-25"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"poor","evidence":"published 47 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2022-11-22"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":null,"unit":"views"},{"value":null,"unit":"comments"},{"value":null,"unit":"likes"}]},"signals":null,"series":null,"edges":{"authors":[]}}