QueryBuilder example:
Person p = Person.newQuery().results().random();
Person oldPerson = Person.newQuery().ages(99).results().random();
Person mihael = Person.newQuery().names("Mihael").results().random();
/*System.out.println(p.getName() + " -> " + p.getAge());*/
QueryBuilder output:
Mihael -> 17
Party -> 99
00:00:00:65
QueryBuilder Animal example:
Animal.newQuery().genders(Gender.FEMALE).results().asList().forEach(a -> {
System.out.println(a.getName());
});
QueryBuilder Animal output:
Dogi
Jo
00:00:00:83