Spring Boot Kafka Microservices - #7 - Order and OrderEvent DTO Classes in Base Domains


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;
}


Free Spring Boot Tutorial | Full In-depth Course | Learn Spring Boot in 10 Hours


Watch this course on YouTube at Spring Boot Tutorial | Fee 10 Hours Full Course

Comments