Getting Started

You can download the code for this example here: OnyxDevTools/onyx-database-samples/quickstart.

Here is a quick look at how to get started using Onyx Database:

  1. Add Onyx Maven as a dependency:
    Notes:
    This will automatically download the jar into your classpath from Maven Central.
    The latest version is: 2.1.0
  2. Add a simple entity with Onyx annotations:
  3. Create an instance of that entity:
  4. Initialize the database and get a handle on the Persistence Manager using a factory:
  5. Save the instance:
  6. Execute a query to see your entity in the collection:
  7. tutorials