Skip to content

Commit 96094f2

Browse files
committed
Formatting narrower for GitHub
1 parent ce1fdea commit 96094f2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ For example, a typical search can be coded with a query like this (the following
2323
select(Customer.id, Customer.firstName, Customer.lastName).from(Customer) {
2424
where(Customer.active, isEqualTo(true))
2525
and(Customer.id, isEqualToWhenPresent(id).then{ it?.padStart(5, '0') })
26-
and(Customer.firstName, isLikeCaseInsensitiveWhenPresent(firstName).then{ "%" + it.trim() + "%" })
27-
and(Customer.lastName, isLikeCaseInsensitiveWhenPresent(lastName).then{ "%" + it.trim() + "%" })
26+
and(Customer.firstName, isLikeCaseInsensitiveWhenPresent(firstName)
27+
.then{ "%" + it.trim() + "%" })
28+
and(Customer.lastName, isLikeCaseInsensitiveWhenPresent(lastName)
29+
.then{ "%" + it.trim() + "%" })
2830
orderBy(Customer.lastName, Customer.firstName)
2931
limit(500)
3032
}

0 commit comments

Comments
 (0)