add children as composition
This commit is contained in:
@@ -33,11 +33,12 @@ entity Genres : sap.common.CodeList {
|
|||||||
|
|
||||||
/** Hierarchically organized entity for Contents */
|
/** Hierarchically organized entity for Contents */
|
||||||
entity Contents {
|
entity Contents {
|
||||||
key ID : UUID;
|
key ID : UUID;
|
||||||
name : String;
|
name : String;
|
||||||
page : Integer;
|
page : Integer;
|
||||||
parent : Association to Contents;
|
parent : Association to Contents;
|
||||||
book : Association to Books;
|
children : Composition of many Contents on children.parent = $self;
|
||||||
|
book : Association to Books;
|
||||||
}
|
}
|
||||||
|
|
||||||
type Price : Decimal(9,2);
|
type Price : Decimal(9,2);
|
||||||
|
|||||||
Reference in New Issue
Block a user