-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deep delete for views without navigation (#434)
Support deep delete when navigation is not included in the view. Rewrite first incoming query in `deep_delete()` to a delete from database table where keys in select from view and call `onDELETE` again with this query. --------- Co-authored-by: Patrice Bender <patrice.bender@sap.com> Co-authored-by: I543501 <lars.lutz@sap.com>
- Loading branch information
1 parent
cd3115b
commit 3ebc9c2
Showing
3 changed files
with
161 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,51 @@ | ||
namespace complex; | ||
|
||
entity Books { | ||
key ID : Integer; | ||
title : String(111); | ||
author : Association to Authors; | ||
key ID : Integer; | ||
title : String(111); | ||
author : Association to Authors; | ||
} | ||
|
||
entity Authors { | ||
key ID : Integer; | ||
name : String(111); | ||
books : Association to many Books on books.author = $self; | ||
key ID : Integer; | ||
name : String(111); | ||
books : Association to many Books | ||
on books.author = $self; | ||
} | ||
|
||
entity Root { | ||
key ID : Integer; | ||
fooRoot : String; | ||
children : Composition of many Child | ||
on children.parent = $self; | ||
} | ||
|
||
entity Child { | ||
key ID : Integer; | ||
fooChild : String; | ||
parent : Association to one Root; | ||
children : Composition of many GrandChild | ||
on children.parent = $self | ||
} | ||
|
||
entity GrandChild { | ||
key ID : Integer; | ||
fooGrandChild : String; | ||
parent : Association to one Child; | ||
} | ||
|
||
entity RootPWithKeys as | ||
projection on Root { | ||
key ID, | ||
fooRoot, | ||
children | ||
} | ||
|
||
entity ChildP as | ||
projection on Child { | ||
key ID, | ||
fooChild, | ||
parent | ||
} | ||
|
||
entity ChildPWithWhere as projection on Child where fooChild = 'bar' |