Skip to content

magonxesp/criteria

Repository files navigation

Criteria

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.

Installation

Add the dependency on your build.gradle.kts

dependencies {
    implementation("io.github.magonxesp:criteria-core:0.1.0")
}

For Spring Boot and Spring Data JPA add the spring-boot dependency.

dependencies {
    implementation("io.github.magonxesp:criteria-spring-boot:0.1.0")
}

Usage

Read the docs.

Development

See the development guide