Customer dave = repository.findByEmailAddress(new EmailAddress("dave@dmband.com"));
Customer carter = repository.findByEmailAddress(new EmailAddress("carter@dmband.com"));
QCustomer customer = QCustomer.customer;
BooleanExpression firstnameStartsWithDa = customer.firstname.startsWith("Da");
BooleanExpression lastnameContainsEau = customer.lastname.contains("eau");
Iterable<Customer> result = repository.findAll(firstnameStartsWithDa.or(lastnameContainsEau));
assertThat(result, is(Matchers.<Customer> iterableWithSize(2)));
assertThat(result, hasItems(dave, carter));