Skip to content

Commit 177d7e1

Browse files
committed
rm expand
1 parent 3cca913 commit 177d7e1

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

app/common.cds

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,7 @@ annotate my.Genres with
177177
UI : {
178178
SelectionFields : [name],
179179
LineItem : [
180-
{Value : name},
181-
{
182-
Value : parent.name,
183-
Label : 'Main Genre'
184-
},
180+
{Value : name}
185181
],
186182
}
187183
);
@@ -199,12 +195,7 @@ annotate my.Genres with
199195
TypeNamePlural : '{i18n>Genres}',
200196
Title : {Value : name},
201197
Description : {Value : ID}
202-
},
203-
Facets : [{
204-
$Type : 'UI.ReferenceFacet',
205-
Label : '{i18n>SubGenres}',
206-
Target : 'parent/@UI.LineItem'
207-
}, ],
198+
}
208199
});
209200

210201

srv/admin-service.cds

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ extend my.Orders with changelog.changeTracked;
99
@odata.apply.transformations
1010
service AdminService @(requires : 'admin') {
1111
entity Books as projection on my.Books excluding { reviews } actions {
12-
action addToOrder(order_ID : UUID, quantity : Integer) returns Orders;
13-
}
12+
action addToOrder(order_ID : UUID, quantity : Integer) returns Orders;
13+
}
1414

1515
entity Authors as projection on my.Authors;
1616
entity Orders as select from my.Orders;
@@ -69,6 +69,7 @@ annotate AdminService.OrderItems {
6969
// Assign identifiers to the tracked entities
7070
annotate AdminService.Orders with @changelog: [OrderNo];
7171
annotate AdminService.OrderItems with @changelog: [
72-
parent.OrderNo,
73-
book.title,
74-
];
72+
parent.OrderNo,
73+
book.title,
74+
];
75+

0 commit comments

Comments
 (0)