сдал
This commit is contained in:
parent
ddd0f77d9a
commit
1f34a355bc
@ -27,6 +27,7 @@ public class TableController {
|
||||
|
||||
private TableDTO toDTO(TableEntity entity) {
|
||||
return new TableDTO(
|
||||
entity.getId(),
|
||||
entity.getDescription(),
|
||||
entity.getDate(),
|
||||
modelMapper.map(entity.getCreator(), UserDTO.class),
|
||||
|
@ -23,7 +23,8 @@ public class TableDTO {
|
||||
private GameDTO game;
|
||||
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.date = date;
|
||||
this.creator = creator;
|
||||
|
Loading…
Reference in New Issue
Block a user