Move to new server

This commit is contained in:
2024-10-12 13:37:59 +02:00
commit 2959eb5cfd
111 changed files with 12795 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package nl.connectedit.swiss.mapper;
import nl.connectedit.swiss.domain.entity.Game;
import nl.connectedit.swiss.dto.GameDto;
import org.springframework.stereotype.Component;
@Component
public class GameMapper implements DtoMapper<Game, GameDto> {
@Override
public GameDto toDto(Game game) {
var gameDto = new GameDto();
gameDto.setScore1(game.getScore1());
gameDto.setScore2(game.getScore2());
return gameDto;
}
}