Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
.settings
src/main
.classpath
.gitignore
.project
LICENSE.txt
README.md
assembly.xml
build.xml
pom.xml

README.md

tutorial

Simple demonstration of using JPA with DataNucleus. You can run this with any supported datastore by simply editing the following files :-

Choosing to NOT invoke the tutorial using the following methods means that you ignore our advice and any problem is yours.

Maven Instructions

  1. Run the command mvn clean compile. This builds everything and enhances the classes.

  2. Run the command mvn datanucleus:schema-create. This creates the schema for the tutorial.

  3. Run the command mvn exec:java. This runs the tutorial.

  4. Run the command mvn datanucleus:schema-delete. This deletes the schema for the tutorial

Ant instructions

  1. Create a directory lib and add the following jars to it : javax.persistence-2.1.0.jar, datanucleus-core.jar, datanucleus-api-jpa.jar, datanucleus-{store}.jar, log4j.jar, {your-database-driver}.jar

  2. Run the command ant clean compile enhance. This builds everything and enhances the classes

  3. Run the command ant createschema. This creates the schema for the tutorial.

  4. Run the command ant runtutorial. This runs the tutorial.

  5. Run the command ant deleteschema. This deletes the schema for the tutorial.