This commit is contained in:
bekodeg 2024-05-21 15:20:41 +04:00
parent ddd0f77d9a
commit 1f34a355bc
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,7 @@ public class TableController {
private TableDTO toDTO(TableEntity entity) { private TableDTO toDTO(TableEntity entity) {
return new TableDTO( return new TableDTO(
entity.getId(),
entity.getDescription(), entity.getDescription(),
entity.getDate(), entity.getDate(),
modelMapper.map(entity.getCreator(), UserDTO.class), modelMapper.map(entity.getCreator(), UserDTO.class),

View File

@ -23,7 +23,8 @@ public class TableDTO {
private GameDTO game; private GameDTO game;
private List<UserDTO> gamers; private List<UserDTO> gamers;
public TableDTO(String description, Date date, UserDTO creator, GameDTO game, List<UserDTO> gamers){ public TableDTO(Long id, String description, Date date, UserDTO creator, GameDTO game, List<UserDTO> gamers){
this.id = id;
this.description = description; this.description = description;
this.date = date; this.date = date;
this.creator = creator; this.creator = creator;