add compositions for cascade delete

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-11-06 23:26:13 +03:00
committed by Daniel Hutzel
parent e08b1c6246
commit c932b486e1

View File

@@ -98,7 +98,12 @@ entity Tracks {
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
// Two compositions below needed for cascade delete track
invoiceItems : Composition of many InvoiceItems
on invoiceItems.track = $self; on invoiceItems.track = $self;
virtual alreadyOrdered : Boolean; playlistTracks : Composition of many {
} key playlist : Association to Playlists;
key track : Association to Tracks;
};
};