Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. @Query(value = "SELECT n FROM Noticia n JOIN n.categorias c WHERE c IN :categoria",
  2. countQuery = "SELECT count(n) FROM Noticia n JOIN n.categorias c WHERE c IN :categoria")
  3. Page obterNoticiasPorIdCategoria(Pageable pageable, @Param ("categoria") Categoria categoria);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement