add order command query for test in project and add consumer kfka for test event driven read model design pattern

dont forget change implementation of kafka consumer to list of values
This commit is contained in:
esmailian
2025-04-28 15:54:16 +03:30
parent 8a986212c4
commit c462b79e98
13 changed files with 129 additions and 92 deletions

View File

@ -0,0 +1,25 @@
package com.example.mmad.testapp.event;
public class OrderCreatedEvent {
private final Long orderId;
private final String orderName;
private final String description;
public OrderCreatedEvent(Long orderId, String orderName, String description) {
this.orderId = orderId;
this.orderName = orderName;
this.description = description;
}
public Long getOrderId() {
return orderId;
}
public String getOrderName() {
return orderName;
}
public String getDescription() {
return description;
}
}