You can download the code for this example here:
The find method is a handy way of retrieving a single object stored in Onyx Database. This tutorial assumes that you have already stored a hierarchy of related data in an embedded local Onyx Database. In this case, the data stores the stats for all of the team leaders for each team in the NFL for the 2015 season. To see how the data was seeded for this example, see Main.java.
This will retrieve the entity object you looking for
Our goal is to bring about change by enabling people to use simple and quality software in order to make sad engineers happy.