JPOX Tutorial
-------------

This contains the a tutorial based on JPOX Tutorial. The files are laid out as follows

jpox.properties
---------------
This file contains the property settings for where you will be persisting your data. You will need to update this file to match your database location etc.

org/jpox/tutorial/model/package.jdo
-----------------------------
This defines how the Product and Book classes are persisted by JDO.

org/jpox/tutorial/model/Book.java
---------------------------
Representation of a Book object

org/jpox/tutorial/model/Product.java
------------------------------
Representation of a Product object

org/jpox/tutorial/Main.java
---------------------------
Class controlling the persistence of objects.

org/jpox/tutorial/DAO.java
---------------------------
Data Access Object.

org/jpox/tutorial/PersistenceManagerHelper.java
---------------------------
Singleton returned a PersistenceManager.

build.xml
---------
File used by Ant for building the tutorial.

log4j.properties
----------------
Log4J configuration file

Running with Ant
----------------

1. Set the database configuration in the jpox.properties file.

2. Copy the required jar files to the folder /lib

   /lib/jpox.jar
   /lib/jpox-enhancer.jar
   /lib/log4j.jar
   /lib/bcel.jar
   /lib/Your database driver jar files.

3. run the commands
   a). "ant compile" - compiles the source code
   b). "ant enhance" - enhances the classes
   c). "ant createschema" - creates the tables in the datastore
   d). "ant deleteschema" - deletes the tables in the datastore (if reqd)


Running the tutorial application manually
-----------------------------------------
Use a command like this, replacing the mysql-connector-java jar with a 
jar for your JDBC driver.

java -cp lib/jpox.jar:lib/log4j.jar:lib/mysql-connector-java.jar:target/classes/:. org.jpox.tutorial.Main


(c) Copyright 2003-2005 JPOX
