use of org.qi4j.test.indexing.model.Male in project qi4j-sdk by Qi4j.
the class AbstractQueryTest method script15.
@Test
public void script15() throws EntityFinderException {
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Male person = templateFor(Male.class);
Query<Person> query = unitOfWork.newQuery(qb.where(isNull(person.wife())));
System.out.println("*** script15: " + query);
verifyUnorderedResults(query, "Joe Doe", "Ann Doe");
}
use of org.qi4j.test.indexing.model.Male in project qi4j-sdk by Qi4j.
the class AbstractQueryTest method script13.
@Test
public void script13() throws EntityFinderException {
QueryBuilder<Person> qb = this.module.newQueryBuilder(Person.class);
Male person = templateFor(Male.class);
Query<Person> query = unitOfWork.newQuery(qb.where(isNotNull(person.wife())));
System.out.println("*** script13: " + query);
verifyUnorderedResults(query, "Jack Doe");
}
Aggregations