{"id":25976176,"url":"https://github.com/kh77/dynamic-query-search","last_synced_at":"2026-04-21T04:01:43.804Z","repository":{"id":55675994,"uuid":"515548282","full_name":"kh77/dynamic-query-search","owner":"kh77","description":"Spring Boot - search specification on controller level","archived":false,"fork":false,"pushed_at":"2022-07-19T11:03:12.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T03:35:31.583Z","etag":null,"topics":["java","jpa-specification","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kh77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-19T11:03:08.000Z","updated_at":"2023-10-03T16:21:27.000Z","dependencies_parsed_at":"2022-08-15T06:10:57.813Z","dependency_job_id":null,"html_url":"https://github.com/kh77/dynamic-query-search","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kh77/dynamic-query-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fdynamic-query-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fdynamic-query-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fdynamic-query-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fdynamic-query-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kh77","download_url":"https://codeload.github.com/kh77/dynamic-query-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kh77%2Fdynamic-query-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32076295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["java","jpa-specification","spring-boot"],"created_at":"2025-03-05T03:35:29.441Z","updated_at":"2026-04-21T04:01:43.790Z","avatar_url":"https://github.com/kh77.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpringBoot-JPA-DynamicQuery-Specification\n\nCreate database with the name of demo\n\n### Sample tables\n\n- Employee \n- Department\n\n\n\t\n\n### How to implement\n\nStep 1. Create Repository interface, extends JpaRepository and JpaSpecificationExecutor.\n\nStep 2. Create Specification class, extends SearchSpecification and override toPredicate method for implement search logic.\n\n\n#### Demo\n\n- Example searching list of Employee.\n\n\t\tGET method \n\t\tURl : http://localhost:8082/api/employee/list?departmentId=\u0026name=\u0026phone=\u0026departmentName=\n\n\n- Example searching, sorting and paging for GET method.\n\n\t\tGET method \n\t\tURl : http://localhost:8082/api/employee/page?page=0\u0026sort=desc\u0026sortField=departmentName\u0026firstName=\u0026size=100\n\t\n\n- Example searching, sorting and paging for POST method.\n\n\t\tPOST method \n\t\tURl : http://localhost:8082/api/employee/search-criteria\n\t\tRequest body :\n\t\t{\n\t\t    \"page\" : 0,\n\t\t    \"size\" : \"10\",\n\t\t    \"sort\" : \"asc\",\n\t\t    \"sortField\" : \"id\",\n\t\t    \"search\" : {\n\t\t\t\"name\" : null,\n\t\t\t\"phone\" : null,\n\t\t\t\"departmentId\" : null,\n\t\t\t\"departmentName\" : null\n\t\t    }\n\t\t}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh77%2Fdynamic-query-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkh77%2Fdynamic-query-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkh77%2Fdynamic-query-search/lists"}