Switch branches/tags
Nothing to show
Find file History
Latest commit 3a8f73d Dec 20, 2017
Permalink
..
Failed to load latest commit information.
.settings bump to 5.0 Jan 20, 2016
src/main driver name Dec 20, 2017
.classpath bump to 5.0 Jan 20, 2016
.gitignore ignore Mar 28, 2016
.project convert to maven project Dec 16, 2013
LICENSE.txt test Dec 4, 2013
README.md bring up to date for 5.0 and JDO 3.2 Nov 16, 2016
assembly.xml merge JDO samples Dec 4, 2013
build.xml bump versions May 2, 2014
pom.xml bump maven plugin Jul 4, 2016

README.md

tutorial

Simple demonstration of using JDO 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.

Note that for some datastores, you will need to start them up before running the tutorial, and optionally create the schema defined in the persistence properties.

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.jdo-3.2.0-m6.jar, datanucleus-core.jar, datanucleus-api-jdo.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.