❮ Previous Lecture
Next Lecture ❯
❮ Previous Lecture
Next Lecture ❯
Welcome to Spring Boot Kafka Event-Driven Microservices Series. In this lecture, we will create Order and OrderEvent DTO Classes in Base Domains microservice.
Lecture - #7 - Order and OrderEvent DTO Classes in Base Domains
Source Code - Create Order and OrderEvent DTO Classes in Base-Domains
Open base-domains microservice and quickly create Order and OrderEvent DTO classes.
Order
package net.javaguides.basedomains.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
private String orderId;
private String name;
private int qty;
private double price;
}
OrderEvent
package net.javaguides.basedomains.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderEvent {
private String message;
private String status;
private Order order;
}
Comments
Post a Comment
Leave Comment