Which DTO class is the correct structure?
Advertisements I’m learning about DTO’s, and I have a question. Which of these 2 examples is the correct way to make a DTO class. First Example package com.example.matchescrud.dto; import com.example.matchescrud.dto.response.MatchResponseDTO; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.util.List; @AllArgsConstructor @NoArgsConstructor @Data public class TeamDTO { private Long id; private String name; private DivisionDTO division; private… Read More Which DTO class is the correct structure?