Skip to content

Commit e1eb3e7

Browse files
committed
Add missing includeValues call
1 parent 6f780aa commit e1eb3e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public void runTests() throws IOException {
8080

8181
Query query = cache.createQuery();
8282
query.includeKeys();
83+
query.includeValues();
8384
query.add(new And(name.like("Ari*"), gender.eq(Gender.MALE)));
8485

8586
long t = System.currentTimeMillis();
@@ -89,7 +90,8 @@ public void runTests() throws IOException {
8990
System.out.println("Took: " + (System.currentTimeMillis() - t) + " Size: " + results.size());
9091
System.out.println("----Results-----");
9192
for (Result result : results.all()) {
92-
System.out.println("Got: Key[" + result.getKey() + "] Value class ["+result.getValue().getClass()+"] Value [" + result.getValue() + "]");
93+
System.out.println("Got: Key[" + result.getKey() + "] Value class [" + result.getValue().getClass() + "] Value ["
94+
+ result.getValue() + "]");
9395
}
9496

9597
read();

0 commit comments

Comments
 (0)