We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c61f2b commit b79db27Copy full SHA for b79db27
1 file changed
src/main/java/com/gabriel_torelo/game_list/services/GameService.java
@@ -22,4 +22,18 @@ public List<GameMinDTO> readAll() {
22
23
return rGames.stream().map(gameEntity -> new GameMinDTO(gameEntity)).toList();
24
}
25
+
26
+ @Transactional(readOnly = true)
27
+ public GameShortDTO readID(Long id) {
28
+ Game rGame = gameRepository.findById(id).get();
29
30
+ return new GameShortDTO(rGame);
31
+ }
32
33
34
+ public GameLongDTO readMoreID(Long id) {
35
36
37
+ return new GameLongDTO(rGame);
38
39
0 commit comments