use of org.qi4j.test.indexing.model.QueryParam in project qi4j-sdk by Qi4j.
the class AbstractComplexQueryTest method script09.
@Test
public void script09() {
ValueBuilder<QueryParam> queryParamBuilder = this.module.newValueBuilder(QueryParam.class);
QueryParam param = queryParamBuilder.prototype();
param.name().set("user");
param.value().set("jackdoe");
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Property<Collection<QueryParam>> paramsProp = templateFor(Person.class).personalWebsite().get().queryParams();
qb = qb.where(not(contains(paramsProp, queryParamBuilder.newInstance())));
Query<Person> query = unitOfWork.newQuery(qb);
System.out.println("*** script09: " + query);
verifyUnorderedResults(query, ANN, JOE);
}
Aggregations