https://github.com/datanucleus/test-jpa
Template test for demonstrating issues with DataNucleus using the JPA API
https://github.com/datanucleus/test-jpa
jpa
Last synced: 9 months ago
JSON representation
Template test for demonstrating issues with DataNucleus using the JPA API
- Host: GitHub
- URL: https://github.com/datanucleus/test-jpa
- Owner: datanucleus
- Created: 2013-03-01T15:52:25.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2023-08-02T12:55:55.000Z (almost 3 years ago)
- Last Synced: 2025-04-03T17:52:46.682Z (about 1 year ago)
- Topics: jpa
- Language: Java
- Homepage:
- Size: 187 KB
- Stars: 3
- Watchers: 4
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
test-jpa
========
Template project for any user testcase using JPA.
To create a DataNucleus test simply fork this project, and add/edit as necessary to add your model and persistence commands.
The files that you'll likely need to edit are
* src/main/java/mydomain/model/ **[Put your model classes here]**
* src/main/resources/META-INF/persistence.xml **[Put your datastore details in here]**
* src/test/java/org/datanucleus/test/SimpleTest.java **[Edit this if a single-thread test is required]**
* src/test/java/org/datanucleus/test/MultithreadTest.java **[Edit this if a multi-thread test is required]**
To run this, simply type "mvn clean compile test"