Example usage for org.springframework.data.domain ExampleMatcher matching

List of usage examples for org.springframework.data.domain ExampleMatcher matching

Introduction

In this page you can find the example usage for org.springframework.data.domain ExampleMatcher matching.

Prototype

static ExampleMatcher matching() 

Source Link

Document

Create a new ExampleMatcher including all non-null properties by default matching all predicates derived from the example.

Usage

From source file:org.egov.restapi.web.contracts.tradelicense.TradeLicenseDetailRequest.java

public Example tradeLicenseLike() {
    TradeLicense license = new TradeLicense();
    if (isNotBlank(tin))
        license.setLicenseNumber(tin);/*from w w  w. j ava  2  s .  com*/
    Boundary ward = new Boundary();
    ward.setBoundaryNum(wardNo);
    ward.setActive(true);
    license.setParentBoundary(ward);
    license.setIsActive(true);
    ExampleMatcher matcher = ExampleMatcher.matching().withIgnorePaths("legacy", "newWorkflow",
            "collectionPending");
    return Example.of(license, matcher);
}