We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce567f0 commit ef6cd75Copy full SHA for ef6cd75
src/main/java/org/sharrissf/sample/EhcacheSearchPlaying.java
@@ -1,7 +1,5 @@
1
package org.sharrissf.sample;
2
3
-import static net.sf.ehcache.search.expression.Logic.and;
4
-
5
import java.io.IOException;
6
7
import net.sf.ehcache.CacheManager;
@@ -95,7 +93,7 @@ public void runTests() throws IOException {
95
93
96
94
Query query = cache.createQuery();
97
query.includeKeys();
98
- query.add(and(name.like("Ari*"), gender.eq(Gender.MALE)))
+ query.add(name.like("Ari*").and(gender.eq(Gender.MALE)))
99
.addOrder(age, Direction.ASCENDING).maxResults(10);
100
101
long t = System.currentTimeMillis();
0 commit comments