0
I have a list of clients per seller and am trying to create a pagination to show 10 and 10 clients in my modal in PHP. If anyone can help me thank you, because I’m still not good at spring date.
Below is my repository:
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import br.com.alpha.core.modelo.entidades.Cliente;
public interface ClienteRepositorio extends JpaRepository<Cliente, Integer> {
List<Cliente> findByNomeStartingWithAndVendedorEquals(String nome, Integer vendedor);
}
Hello Bruno, I got it! And it was very simple, as I had never made a pagination like this I was almost crazy kkk but it worked out all right. A friend of this Site posted this link download it because it has a very simplified example and you will understand right away. That’s what he posted "In one of my projects I used this solution, all its documentation is on github: https://github.com/jpenren/thymeleaf-spring-data-dialect"
– Antonio Justino