Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed AQLRunner example contained non-existing method #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1081,11 +1081,9 @@ public class AQLRunner implements CommandLineRunner {
@Override
public void run(final String... args) throws Exception {
System.out.println("# AQL queries");

System.out.println("## Find all characters which are older than 21 (sort descending)");
final Iterable<Character> older = repository.getOlderThan(21);
older.forEach(System.out::println);

System.out.println("## Find all characters with surname 'Lannister' (sort by age ascending)");
Iterable<Character> lannisters = repository.getWithSurname("Lannister");
lannisters.forEach(System.out::println);
}

}
Expand All @@ -1103,14 +1101,6 @@ Class<?>[]runner=new Class<?>[]{
};
```

Add the following lines to AQLRunner.

```java
System.out.println("## Find all characters with surname 'Lannister' (sort by age ascending)");
Iterable<Character> lannisters = repository.getWithSurname("Lannister");
lannisters.forEach(System.out::println);
```

The console output should give you all characters with `surname` Lannister.

```text
Expand Down