Skip to content

Commit 5c14248

Browse files
author
teck
committed
change addOrder to addOrderBy
1 parent 0c05bd2 commit 5c14248

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/sharrissf/sample/EhcacheSearchPlaying.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void runTests() throws IOException {
9494
Query query = cache.createQuery();
9595
query.includeKeys();
9696
query.addCriteria(name.like("Ari*").and(gender.eq(Gender.MALE)))
97-
.addOrder(age, Direction.ASCENDING).maxResults(10);
97+
.addOrderBy(age, Direction.ASCENDING).maxResults(10);
9898

9999
long t = System.currentTimeMillis();
100100
System.out

0 commit comments

Comments
 (0)