You can download the code for this example here:
To retrieve a list of entities with compound filter rules use the executeQuery method.
This tutorial demonstrates how to query for data in Onyx Database and filter by transitive attributes from another related entity.
As an example, we will retrieve a list of "Player" entities and specifically we will search for running backs that have reached 1000 rushingYards or more.
To see how the data was seeded for this example, see Main.java.
You can construct a QueryCriteria to do complex queries and filtering. This QueryCriteria below will retrieve a list of players who have a position of "RB" and that also have a child stats entity that has rushingYards >= 1000.
This example uses one of the many constructors that are available.
This will retrieve a list of entities according to the compound criteria of the Query
Our goal is to bring about change by enabling people to use simple and quality software in order to make sad engineers happy.