The leader in visual, model driven Java development since 1996!
New! Sample persistence projects!

Exposed Domain Model Pattern
Use exPOJO, the free, open source framework for exposing your POJOs and get productive today!
more>>

 

 

Step Ahead

 

 

 

 

Javelin: example projects
The examples on this page will help you get up to speed quickly. If you have a question about implementing a certain type of pattern or object graph in Java/Javelin please send it our way. We'll normally respond with an example project that we'll list here.

JDO Examples
(The Javelin project files contained in these examples are configured to generate .jdo meta data automatically from the domain object model. NOTE: it is not necessary to download Javelin to run these examples - that is only necessary if you wish to view the domain model class diagrams or change the domain model)

Please note: all JDO examples use the excellent, leading open source JDO2 implementation called JPOX. It's Sun's official JDO reference implementation and it's a high quality project released under the Apache 2 license so it's able to be used in commercial applications for free. To save you time we have bundled all the necessary JPOX jars into one simple download. If you don't already have the JPOX jars then download everything you need right here in the jpoxJarBundle.zip

>>Breaking news!!! We've now also bundled the compact HSQLDB database into the JPOX Jar bundle so you don't even need to install or setup a database to run the samples. For a 'configuration free' test drive download and extract the jar bundle and any examples into the same root directory eg., c:\work\testdrive\jdo or ~home/testdrive/jdo. If you have downloaded the jpoxJarBundle.zip prior to Feb 8, 2007 then download it again to get the version with HSQLDB prepacked. <<

MyBank Stage 1:
A very simple, entry level, design with domain model objects that model a bank with online users. It contains detailed instructions for how to build the project in the readme.txt. The model has an optional relationship from user -> account. A user represents an online user and account represents a bank account. It demonstrates everything you need to know to build your first application using JDO persistence including options in the jpox.properties file for configuring JPOX to use a HSQLDB (default), MySQL or Oracle database (many others are also supported by JPOX). It contains all the code necessary to create some users, persist them, adjust their bank accounts and then list their bank balances.

Download MyBank1 Sample

This example is configured to run 'straight out of the box' if you extract it to the same directory that you extracted jpoxJarBundle.zip to. Follow the readme.txt for instructions.

MyBank Stage 2:
This example uses the same model as the above but the persistence is implemented using the "Exposed Domain Model Pattern" via the open source exPOJO library (http://www.expojo.com). It contains detailed instructions for how to build the project in the readme.txt. The model has an optional relationship from user -> account. A user represents an online user and account represents a bank account. It demonstrates everything you need to know to build your first application using JDO persistence including options in the jpox.properties file for configuring JPOX to use a HSQLDB (default), MySQL or Oracle database (many others are also supported by JPOX). It contains all the code necessary to create some users, persist them, adjust their bank accounts and then list their bank balances.

Download MyBank2 Sample

This example is configured to run 'straight out of the box' if you extract it to the same directory that you extracted jpoxJarBundle.zip to. Follow the readme.txt for instructions. Note: if you have not downloaded jpoxJarBundle.zip since March 8, 2007 please download it again because some new jars have been added which are required by MyBank2 example.

Hibernate Examples
(The Javelin project files contained in these examples are configured to generate .hbm.xml meta data automatically from the object model and auto insert the methods required by Hibernate to form a persistence-capable class. NOTE: it is not necessary to download Javelin to run these examples - that is only necessary if you wish to view the domain model class diagrams or change the domain model)

Hibernate examples are under construction but they follow exactly the same pattern as the JDO examples if you can't wait!

 

home | sitemap | AnFX Home | Visual Classworks Home
Custom software development services

Back to top

Copyright 1996, 2006 Step Ahead Software Pty Ltd. All rights reserved.
Java™ and Java™-based marks are trademarks or registered trademarks of Sun Microsystems.
Flash™ is a trade mark of Macromedia Inc.