to run tests within IntelliJ add build step: 'datanucleus:enhance'
Simple demonstration of using JDO with DataNucleus. You can run this with any supported datastore by simply editing the following files
- src/main/resources/META-INF/persistence.xml [Edit the datastore details here]
- pom.xml [Edit the dependency jars for your datastore]
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.
-
Run the command mvn clean compile. This builds everything and enhances the classes.
-
Run the command mvn datanucleus:schema-create. This creates the schema for the tutorial.
-
Run the command mvn exec:java. This runs the tutorial.
-
Run the command mvn datanucleus:schema-delete. This deletes the schema for the tutorial