{"id":37021138,"url":"https://github.com/joaquimsn/query-search","last_synced_at":"2026-01-14T02:29:11.897Z","repository":{"id":57720568,"uuid":"98545330","full_name":"joaquimsn/query-search","owner":"joaquimsn","description":"Make searching and pagination easy with Hibernate ORM using JPQL or SQL","archived":false,"fork":false,"pushed_at":"2018-05-08T18:20:49.000Z","size":37,"stargazers_count":11,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-31T01:44:20.196Z","etag":null,"topics":["filter","hibernate","jpql","pagination","pagination-library","search","sql"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joaquimsn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-27T14:25:37.000Z","updated_at":"2021-05-06T13:23:26.000Z","dependencies_parsed_at":"2022-09-26T22:10:34.914Z","dependency_job_id":null,"html_url":"https://github.com/joaquimsn/query-search","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/joaquimsn/query-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaquimsn%2Fquery-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaquimsn%2Fquery-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaquimsn%2Fquery-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaquimsn%2Fquery-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaquimsn","download_url":"https://codeload.github.com/joaquimsn/query-search/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaquimsn%2Fquery-search/sbom","scorecard":{"id":525952,"data":{"date":"2025-08-11","repo":{"name":"github.com/joaquimsn/query-search","commit":"3339284ea709036eb7227bf81f644ed2636bf3a2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6pcc-3rfx-4gpm","Warn: Project is vulnerable to: GHSA-hwj3-m3p6-hj38","Warn: Project is vulnerable to: GHSA-8grg-q944-cch5","Warn: Project is vulnerable to: GHSA-j8jw-g6fq-mp7h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T04:22:04.321Z","repository_id":57720568,"created_at":"2025-08-20T04:22:04.322Z","updated_at":"2025-08-20T04:22:04.322Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filter","hibernate","jpql","pagination","pagination-library","search","sql"],"created_at":"2026-01-14T02:29:11.301Z","updated_at":"2026-01-14T02:29:11.891Z","avatar_url":"https://github.com/joaquimsn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Query-search\nMake searching and pagination easy with Hibernate ORM using JPQL or SQL\n\n[![Build Status](https://travis-ci.org/joaquimsn/query-search.svg?branch=master)](https://travis-ci.org/joaquimsn/query-search)\n[![Coverage Status](https://coveralls.io/repos/github/joaquimsn/query-search/badge.svg?branch=master)](https://coveralls.io/github/joaquimsn/query-search?branch=master)\n[![Quality Gate](https://sonarcloud.io/api/badges/gate?key=com.github.joaquimsn:querysearch)](https://sonarcloud.io/dashboard/index/com.github.joaquimsn:querysearch)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.joaquimsn/querysearch.svg)](http://mvnrepository.com/artifact/com.github.joaquimsn/querysearch)\n\n\nQuery-search é uma lib criada para facilitar a implementação de consultas com paginação, construida em cima do ORM Hibernate com uma abordagem padronizada e flexível.\n\n## Principais características\n* Paginação com filtros dinamicos\n* Suporte a consulta e paginação com query sql\n* Retorno de objeto customizado para query nativas\n\n## Instalação\nAdicione a dependência no seu projeto\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.joaquimsn\u003c/groupId\u003e\n  \u003cartifactId\u003equerysearch\u003c/artifactId\u003e\n  \u003cversion\u003e0.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Como usar\n1. Implemente a classe **SearchRepository** para prover uma instância do objeto Query\n```java\npublic class SearchRepositoryImpl implements SearchRepository {\n\t\n\t...\n\t\n\t@Override\n\tpublic Query getQueryJpql(String jpql) {\n\t\treturn entityManager.createQuery(jpql);\n\t}\n\t@Override\n\tpublic Query getQueryNativeQuery(String sqlQuery) {\n\t\treturn entityManager.createNativeQuery(sqlQuery);\n\t}\n}\n```\n\n2. Implemente a classe **SearchService**\n```java\npublic class SearchServiceImpl implements SearchService {\n\t\n\t...\n\t\n\t@Override\n\tpublic SearchRepository getRepository() {\n\t\treturn repository;\n\t}\n}\n```\n\n3. Agora é só implementar um filtro, use **AbstractSpqlSearchFilter** para paginação e consultas com sql, ou **AbstractJpqlSearchFilter** para trabalhar com entidades mapeadas\n\n## Veja um exemplo\n[Clique aqui para acessar os exemplos](https://github.com/joaquimsn/query-search/tree/master/examples) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaquimsn%2Fquery-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaquimsn%2Fquery-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaquimsn%2Fquery-search/lists"}