сдал
This commit is contained in:
parent
ddd0f77d9a
commit
1f34a355bc
@ -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),
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user