File tree Expand file tree Collapse file tree 5 files changed +14
-53
lines changed
Expand file tree Collapse file tree 5 files changed +14
-53
lines changed Original file line number Diff line number Diff line change 88} from ' @sap/cds/common' ;
99using my .bookshop .Reviews from ' ./reviews' ;
1010using my .bookshop .TechnicalBooleanFlag from ' ./common' ;
11- using {sap .attachments .Attachments } from ` com.sap.cds/cds-feature-attachments` ;
1211
1312@ fiori . draft . enabled
1413entity Books : cuid , managed {
@@ -23,7 +22,6 @@ entity Books : cuid, managed {
2322 reviews : Association to many Reviews
2423 on reviews .book = $self ;
2524 isReviewable : TechnicalBooleanFlag not null default true ;
26- covers : Composition of many Attachments ;
2725}
2826
2927entity Authors : cuid , managed {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3232 </properties >
3333
3434 <modules >
35- <module >db</module >
3635 <module >srv</module >
3736 <module >integration-tests</module >
3837 </modules >
7675 </dependencies >
7776 </dependencyManagement >
7877
79- <dependencies >
80- <dependency >
81- <groupId >com.sap.cds</groupId >
82- <artifactId >cds-feature-attachments</artifactId >
83- <version >${cds-feature-attachments.version} </version >
84- </dependency >
85- </dependencies >
86-
8778 <build >
8879 <plugins >
8980 <!-- JAVA VERSION -->
Original file line number Diff line number Diff line change 11using {sap .common .Languages as CommonLanguages } from ' @sap/cds/common' ;
22using {my .bookshop as my } from ' ../db/index' ;
33using {sap .changelog as changelog } from ' com.sap.cds/change-tracking' ;
4+ using {sap .attachments .Attachments } from ` com.sap.cds/cds-feature-attachments` ;
45
56extend my.Orders with changelog .changeTracked ;
67
@@ -62,4 +63,9 @@ annotate AdminService.Orders with @changelog: [OrderNo];
6263annotate AdminService.OrderItems with @ changelog : [
6364 parent . OrderNo ,
6465 book . title ,
65- ];
66+ ];
67+
68+ // Extends the Books entity with the Attachments composition
69+ extend my.Books with {
70+ covers : Composition of many Attachments ;
71+ };
Original file line number Diff line number Diff line change 7474 <artifactId >connectivity-apache-httpclient4</artifactId >
7575 </dependency >
7676
77+ <!-- RE-USE PLUGIN DEPENDENCIES -->
78+ <dependency >
79+ <groupId >com.sap.cds</groupId >
80+ <artifactId >cds-feature-attachments</artifactId >
81+ <version >${cds-feature-attachments.version} </version >
82+ </dependency >
83+
7784 <!-- OTHER DEPENDENCIES -->
7885 <dependency >
7986 <groupId >com.h2database</groupId >
You can’t perform that action at this time.
0 commit comments