@@ -201,7 +201,7 @@ public class OrdersService implements EventHandler {
201
201
}
202
202
}
203
203
204
- @Before(event = CdsService .EVENT_CREATE, entity = Orders_.CDS_NAME)
204
+ @Before(event = CqnService .EVENT_CREATE, entity = Orders_.CDS_NAME)
205
205
public void validateBookAndDecreaseStockViaOrders(List<Orders> orders) {
206
206
for (Orders order : orders) {
207
207
if (order.getItems() != null) {
@@ -281,7 +281,7 @@ Next, let's add a method to the `OrdersService` Java class to calculate the `net
281
281
1. Add the following code to the class and make sure you **Save** the file:
282
282
283
283
```Java
284
- @After(event = { CqnService . EVENT_READ , CdsService . EVENT_CREATE }, entity = OrderItems_ . CDS_NAME )
284
+ @After(event = { CqnService . EVENT_READ , CqnService . EVENT_CREATE }, entity = OrderItems_ . CDS_NAME )
285
285
public void calculateNetAmount(List<OrderItems > items) {
286
286
for (OrderItems item : items) {
287
287
String bookId = item. getBookId();
@@ -368,7 +368,7 @@ Finally, add a method to the `OrdersService` Java class to calculate the `total`
368
368
1. Add the following code to the class and make sure you **Save** the file:
369
369
370
370
```Java
371
- @After(event = { CqnService . EVENT_READ , CdsService . EVENT_CREATE }, entity = Orders_ . CDS_NAME )
371
+ @After(event = { CqnService . EVENT_READ , CqnService . EVENT_CREATE }, entity = Orders_ . CDS_NAME )
372
372
public void calculateTotal(List<Orders > orders) {
373
373
for (Orders order : orders) {
374
374
// calculate net amount for expanded items
0 commit comments