List of usage examples for org.springframework.data.domain ExampleMatcher matching
static ExampleMatcher matching()
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); }