Skip to content

Commit ea75742

Browse files
committed
Update README example - remove deprecated methods
1 parent b1d6a78 commit ea75742

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@ similar):
2626
where {
2727
active isEqualTo "Y"
2828
and { id(isEqualToWhenPresent(id_).map { it?.padStart(5, '0') }) }
29-
and { firstName(isLikeCaseInsensitiveWhenPresent(firstName_).map { "%" + it.trim() + "%" }) }
30-
and { lastName(isLikeCaseInsensitiveWhenPresent(lastName_).map { "%" + it.trim() + "%" }) }
29+
and {
30+
firstName(isLikeCaseInsensitiveWhenPresent(firstName_)
31+
.map { "%" + it.trim() + "%" })
32+
}
33+
and {
34+
lastName(isLikeCaseInsensitiveWhenPresent(lastName_)
35+
.map { "%" + it.trim() + "%" })
36+
}
3137
}
3238
orderBy(lastName, firstName)
3339
limit(500)

0 commit comments

Comments
 (0)