Skip to content

Commit

Permalink
Formatting narrower for GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgbutler committed Aug 19, 2020
1 parent ce1fdea commit 96094f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ For example, a typical search can be coded with a query like this (the following
select(Customer.id, Customer.firstName, Customer.lastName).from(Customer) {
where(Customer.active, isEqualTo(true))
and(Customer.id, isEqualToWhenPresent(id).then{ it?.padStart(5, '0') })
and(Customer.firstName, isLikeCaseInsensitiveWhenPresent(firstName).then{ "%" + it.trim() + "%" })
and(Customer.lastName, isLikeCaseInsensitiveWhenPresent(lastName).then{ "%" + it.trim() + "%" })
and(Customer.firstName, isLikeCaseInsensitiveWhenPresent(firstName)
.then{ "%" + it.trim() + "%" })
and(Customer.lastName, isLikeCaseInsensitiveWhenPresent(lastName)
.then{ "%" + it.trim() + "%" })
orderBy(Customer.lastName, Customer.firstName)
limit(500)
}
Expand Down

0 comments on commit 96094f2

Please sign in to comment.