TJDO Tutorial: Step 5

Step 1 | Step 2 | Step 3 | Step 4 | Step 5

Step 5: Run the program

The final step of this process is to run the program. In addition to TJDO itself the following items need to be available on the classpath at runtime:

To run the test program:

java -cp ".;tjdo.jar;jdo.jar;derby.jar;commons-logging.jar" test.PersonPersister

Now, check your database and the Person should be persisted.

This example just scratches the surface of TJDO's capabilities. There are many more complex and powerful tools available in TJDO such as Collections, JDO queries, and inheritance to name a few. Now that you have gotten your feet wet, dig in some more and explore the possibilities.