The Criteria design pattern helps us to maintain a single form to perform search queries on our database.
It helps to implement the repository design pattern, avoiding to create a bunch of methods to create the same query with different filters.
Add the dependency on your build.gradle.kts
dependencies {
implementation("io.github.magonxesp:criteria-core:1.3.0")
}
For Spring Boot and Spring Data JPA add the spring-boot dependency.
dependencies {
implementation("io.github.magonxesp:criteria-spring-boot:1.3.0")
}