DataNucleus - Tutorial for JDO using MongoDB

Simple demonstration of using JDO with DataNucleus

You can run this with any supported datastore by simply editing the followingfiles :

(1) src/main/resources/META-INF/persistence.xml [Edit the datastore details here]

(2) pom.xml [Edit the dependency jars for your datastore]

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.

http://www.datanucleus.org/products/accessplatform_3_0/guides/jdo/tutorial_mongodb.html

猜你喜欢

转载自jiyuanpeng.iteye.com/blog/1846880
jdo