You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@batchee.apache.org by st...@apache.org on 2014/04/01 13:09:48 UTC
git commit: BATCHEE-24 add a sample persistence.xml to our zip
Repository: incubator-batchee
Updated Branches:
refs/heads/master 5012f7676 -> c93629f87
BATCHEE-24 add a sample persistence.xml to our zip
Project: http://git-wip-us.apache.org/repos/asf/incubator-batchee/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-batchee/commit/c93629f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-batchee/tree/c93629f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-batchee/diff/c93629f8
Branch: refs/heads/master
Commit: c93629f87d1251c657231a0bd99558059fee37b0
Parents: 5012f76
Author: Mark Struberg <st...@apache.org>
Authored: Tue Apr 1 13:09:21 2014 +0200
Committer: Mark Struberg <st...@apache.org>
Committed: Tue Apr 1 13:09:21 2014 +0200
----------------------------------------------------------------------
jbatch/src/main/assembly/dbscripts-assembly.xml | 4 ++++
jbatch/src/test/resources/META-INF/persistence-createdb.xml | 6 +++++-
2 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/c93629f8/jbatch/src/main/assembly/dbscripts-assembly.xml
----------------------------------------------------------------------
diff --git a/jbatch/src/main/assembly/dbscripts-assembly.xml b/jbatch/src/main/assembly/dbscripts-assembly.xml
index 9849d80..f97bb92 100644
--- a/jbatch/src/main/assembly/dbscripts-assembly.xml
+++ b/jbatch/src/main/assembly/dbscripts-assembly.xml
@@ -31,6 +31,10 @@ under the License.
<file>
<source>src/main/resources/META-INF/LICENSE</source>
</file>
+ <file>
+ <source>src/test/resources/META-INF/persistence-createdb.xml</source>
+ <destName>persistence.xml</destName>
+ </file>
</files>
<fileSets>
http://git-wip-us.apache.org/repos/asf/incubator-batchee/blob/c93629f8/jbatch/src/test/resources/META-INF/persistence-createdb.xml
----------------------------------------------------------------------
diff --git a/jbatch/src/test/resources/META-INF/persistence-createdb.xml b/jbatch/src/test/resources/META-INF/persistence-createdb.xml
index a584518..7ada924 100644
--- a/jbatch/src/test/resources/META-INF/persistence-createdb.xml
+++ b/jbatch/src/test/resources/META-INF/persistence-createdb.xml
@@ -23,6 +23,10 @@
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="batchee" transaction-type="RESOURCE_LOCAL">
- <!-- can be empty, we just need this to make the openjpa SQL generator happy -->
+ <!-- This persistence unit is an example of how you could use batchee via JPA -->
+ <class>org.apache.batchee.container.services.persistence.jpa.domain.CheckpointEntity</class>
+ <class>org.apache.batchee.container.services.persistence.jpa.domain.JobExecutionEntity</class>
+ <class>org.apache.batchee.container.services.persistence.jpa.domain.JobInstanceEntity</class>
+ <class>org.apache.batchee.container.services.persistence.jpa.domain.StepExecutionEntity</class>
</persistence-unit>
</persistence>