Skip to content

Commit ef6cd75

Browse files
committed
Update to use new and symatics
1 parent ce567f0 commit ef6cd75

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package org.sharrissf.sample;
22

3-
import static net.sf.ehcache.search.expression.Logic.and;
4-
53
import java.io.IOException;
64

75
import net.sf.ehcache.CacheManager;
@@ -95,7 +93,7 @@ public void runTests() throws IOException {
9593

9694
Query query = cache.createQuery();
9795
query.includeKeys();
98-
query.add(and(name.like("Ari*"), gender.eq(Gender.MALE)))
96+
query.add(name.like("Ari*").and(gender.eq(Gender.MALE)))
9997
.addOrder(age, Direction.ASCENDING).maxResults(10);
10098

10199
long t = System.currentTimeMillis();

0 commit comments

Comments
 (0)