feat: implement server-side pagination, eager query loading, and dynamic column filtering via HTMX

This commit is contained in:
2026-05-30 00:14:07 +02:00
parent 3ae296aa91
commit 1d259831c6
3 changed files with 306 additions and 54 deletions
@@ -10,6 +10,9 @@ import java.util.List;
public interface AdherentRepository extends JpaRepository<Adherent, Long> {
List<Adherent> findTop5ByOrderByIdDesc();
@org.springframework.data.jpa.repository.Query("SELECT DISTINCT a FROM Adherent a LEFT JOIN FETCH a.licences l LEFT JOIN FETCH l.categorie c")
List<Adherent> findAllWithLicencesAndCategories();
@org.springframework.data.jpa.repository.Query("SELECT DISTINCT a FROM Adherent a LEFT JOIN a.licences l WHERE LOWER(a.nom) LIKE LOWER(CONCAT('%', :query, '%')) OR LOWER(a.prenom) LIKE LOWER(CONCAT('%', :query, '%')) OR LOWER(l.numeroLicence) LIKE LOWER(CONCAT('%', :query, '%'))")
List<Adherent> searchByQuery(@org.springframework.data.repository.query.Param("query") String query);
}