add compositions for cascade delete
This commit is contained in:
committed by
Daniel Hutzel
parent
e08b1c6246
commit
c932b486e1
@@ -89,16 +89,21 @@ entity InvoiceItems {
|
|||||||
}
|
}
|
||||||
|
|
||||||
entity Tracks {
|
entity Tracks {
|
||||||
key ID : Integer;
|
key ID : Integer;
|
||||||
name : String(200);
|
name : String(200);
|
||||||
album : Association to Albums;
|
album : Association to Albums;
|
||||||
mediaType : Association to MediaTypes;
|
mediaType : Association to MediaTypes;
|
||||||
genre : Association to Genres;
|
genre : Association to Genres;
|
||||||
composer : String(220);
|
composer : String(220);
|
||||||
milliseconds : Integer default 230619;
|
milliseconds : Integer default 230619;
|
||||||
bytes : Integer default 3990994;
|
bytes : Integer default 3990994;
|
||||||
unitPrice : Decimal(10, 2) default 0.99;
|
unitPrice : Decimal(10, 2) default 0.99;
|
||||||
invoiceItems : Association to many InvoiceItems
|
|
||||||
on invoiceItems.track = $self;
|
// Two compositions below needed for cascade delete track
|
||||||
virtual alreadyOrdered : Boolean;
|
invoiceItems : Composition of many InvoiceItems
|
||||||
}
|
on invoiceItems.track = $self;
|
||||||
|
playlistTracks : Composition of many {
|
||||||
|
key playlist : Association to Playlists;
|
||||||
|
key track : Association to Tracks;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user