Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 4877602

Browse files
committed
introduce entity Pages
1 parent 7dfdbed commit 4877602

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parent_ID,number,content
2+
201,1,Hello World
3+
201,2,Lorem ipsum dolor sit amet
4+
207,1,Hello World
5+
251,1,Hello World
6+
252,1,Hello World
7+
271,1,Hello World

bookshop/db/schema.cds

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ entity Books : managed {
1616
price : Price;
1717
currency : Currency;
1818
image : LargeBinary @Core.MediaType: 'image/png';
19+
pages : Composition of many Pages
20+
on pages.parent = $self;
21+
}
22+
23+
entity Pages {
24+
key parent : Association to Books;
25+
key number : Integer;
26+
content : String(1111);
1927
}
2028

2129
entity Authors : managed {

0 commit comments

Comments
 (0)