|
@ -20,7 +20,7 @@ public class LolService { |
|
|
List<String> result = null; |
|
|
List<String> result = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result = lolDao.findAll() |
|
|
|
|
|
|
|
|
result = lolDao.mostrarTodos() |
|
|
.stream() |
|
|
.stream() |
|
|
.map(lol -> lol.getRol()) |
|
|
.map(lol -> lol.getRol()) |
|
|
.flatMap(list -> list.stream()) |
|
|
.flatMap(list -> list.stream()) |
|
@ -36,12 +36,11 @@ public class LolService { |
|
|
public Collection<Lol> findByAnyGenre(String... genres) { |
|
|
public Collection<Lol> findByAnyGenre(String... genres) { |
|
|
return queryService.anyName(genres).exec(); |
|
|
return queryService.anyName(genres).exec(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Collection<Lol> findByAllGenres(String... genres) { |
|
|
public Collection<Lol> findByAllGenres(String... genres) { |
|
|
return queryService.allName(genres).exec(); |
|
|
return queryService.allName(genres).exec(); |
|
|
} |
|
|
} |
|
|
public Collection<Lol> buscarPorDifucultad(String... dificultada){ |
|
|
public Collection<Lol> buscarPorDifucultad(String... dificultada){ |
|
|
return null; |
|
|
|
|
|
|
|
|
return queryService.mostrarPorDificultada(dificultada).exec(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Collection<Lol> findByTitleContains(String title) { |
|
|
public Collection<Lol> findByTitleContains(String title) { |
|
@ -49,6 +48,6 @@ public class LolService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public Collection<Lol> findAll() { |
|
|
public Collection<Lol> findAll() { |
|
|
return lolDao.findAll(); |
|
|
|
|
|
|
|
|
return lolDao.mostrarTodos(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |