Skip to content

Commit a309e74

Browse files
committed
example in paginateLazily() javadoc
1 parent c8595d5 commit a309e74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mug-safesql/src/main/java/com/google/mu/safesql/SafeSql.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ public <T> Optional<T> queryForOne(
970970
*
971971
* <p>For example: <pre>{@code
972972
* int pageSize = 100;
973-
* List<String> orderBy = Arrays.asList("Timestamp", "CustomerId", "SaleId");
973+
* List<String> orderBy = Arrays.asList("Timestamp DESC", "CustomerId", "SaleId");
974974
* try (Connection connection = ...) {
975975
* SafeSql.of("SELECT Timestamp, CustomerId, SaleId, Summary FROM Sales")
976976
* .paginateLazily(connection, orderBy, pageSize, Sale.class)

0 commit comments

Comments
 (0)