This driver was developed using EclipseLink version 2.6.1 and Java version 8.
Inside the driver folder you will find the following files and folders:
You do not need to install Gradle for the tutorial to work. But you do need a working internet connection, because the tutorial build script will download all the necessary files for it to work.
Be sure you have Java 8, 9, 11, 15, or 16 installed and then access the tutorials folder using a command-line interface. On Windows, you can use the “Apps & Features” control to list the installed programs, and it will show which Java version you have installed.
Execute one of the following based on which operating system you are using:
Linux: |
> make build; make run |
Windows: |
> BuildTutorials.bat |
The first time you run the tutorial, the program will create an ‘Email’ table, and you will see output like this (in addition to the output that is emitted by Gradle):
creating table: Email
creating field: id
creating field: sender
creating field: subject
creating field: textpreview
creating field: hash
creating field: tags
creating field: archived
creating field: received
creating field: created
Subsequent runs of the tutorial will not create the ‘Email’ table, because it already exists, so the above text will not be emitted.
The connection information is stored in the persistence.xml file. It can be found here in the following location:
drivers\java.jpa.nav\tutorials\src\main\resources\META-INF\persistence.xml
The best way to start your own project is to copy the tutorials folder and rename it. Then follow these steps to create your project:
Contact FairCom if you have any questions about this process.