feat: implement server-side pagination, eager query loading, and dynamic column filtering via HTMX
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user