Onyx Database integrates easily with Spring. Configure the Persistence Manager and Persistence Manager Factory as Spring beans. In this example, we have used Spring Boot to bootstrap Onyx.
You can download the code for this example here:
OnyxDevTools/onyx-database-samples/spring-example.
In order to use Spring and Spring Boot, you must include the dependencies within your project.
There is nothing special about the Spring configuration. If you have used Spring before, you will notice this is pretty standard.
The MeetingController is configured by using a @Controller annotation. This class is used to be a data access object for persisting and fetching Meeting entities.
The Meeting entity is a simple managed entity that reflects a scheduled event during someones work day.
The Spring Boot application is created by adding the @SpringBootApplication annotation. Within the main class, we are able to get the Spring application context and access the Spring Beans.
Our goal is to bring about change by enabling people to use simple and quality software in order to make sad engineers happy.
Copyright ©2017 Onyx Development Tools, LLC. All rights reserved.