You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by je...@apache.org on 2010/08/18 06:12:59 UTC

svn commit: r986561 [10/13] - in /ode/trunk: ./ axis2-war/ axis2-war/src/main/assembly/ axis2-war/src/test/java/org/apache/ode/axis2/ axis2-war/src/test/java/org/apache/ode/axis2/instancecleanup/ axis2-war/src/test/java/org/apache/ode/bpel/dao/ axis2-w...

Added: ode/trunk/dao-jpa-db/pom.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/pom.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/pom.xml (added)
+++ ode/trunk/dao-jpa-db/pom.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,238 @@
+<?xml version="1.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.ode</groupId>
+    <artifactId>ode-dao-jpa-db</artifactId>
+    <name>ODE :: JPA DDL Generation</name>
+    <packaging>pom</packaging>
+    <parent>
+        <groupId>org.apache.ode</groupId>
+        <artifactId>ode</artifactId>
+        <version>1.3.5-SNAPSHOT</version>
+    </parent>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-j2ee-connector_1.5_spec</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-jta_1.1_spec</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>javax.persistence</groupId>
+            <artifactId>persistence-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-collections</groupId>
+            <artifactId>commons-collections</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-bpel-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-bpel-dao</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-utils</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-bpel-runtime</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-bpel-epr</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-dao-jpa</artifactId>
+            <classifier>openjpa</classifier>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-dao-jpa</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.ode</groupId>
+            <artifactId>ode-bpel-store</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.openjpa</groupId>
+            <artifactId>openjpa</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>net.sourceforge.serp</groupId>
+            <artifactId>serp</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>wsdl4j</groupId>
+            <artifactId>wsdl4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_2.1_spec</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.derby</groupId>
+            <artifactId>derby</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.derby</groupId>
+            <artifactId>derbytools</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.modules</groupId>
+            <artifactId>geronimo-kernel</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.components</groupId>
+            <artifactId>geronimo-transaction</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.components</groupId>
+            <artifactId>geronimo-connector</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>backport-util-concurrent</groupId>
+            <artifactId>backport-util-concurrent</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-dbcp</groupId>
+            <artifactId>commons-dbcp</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>commons-pool</groupId>
+            <artifactId>commons-pool</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>create-db-schemas</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <property name="maven.runtime.classpath" refid="maven.compile.classpath"/>
+                                <ant antfile="build.xml" target="create-schema" />
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>sql-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>create-derby-db</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>execute</goal>
+                        </goals>
+                        <configuration>
+                            <driver>org.apache.derby.jdbc.EmbeddedDriver</driver>
+                            <url>jdbc:derby:${basedir}/target/derby/jpadb;create=true</url>
+                            <username>sa</username>
+                            <password />
+                            <autocommit>true</autocommit>
+                            <onError>continue</onError>
+                            <srcFiles>
+                                <srcFile>target/scripts/derby.sql</srcFile>
+                            </srcFiles>
+                        </configuration>
+                    </execution>
+		            <execution>
+		            <id>create-h2-db</id>
+		            <phase>process-resources</phase>
+		            <goals>
+		              <goal>execute</goal>
+		            </goals>
+		            <configuration>
+		              <driver>org.h2.Driver</driver>
+		              <url>jdbc:h2:file:${basedir}/target/h2/jpadb/ode-ojpa-h2;create=true</url>
+		              <username>sa</username>
+		              <password />
+		              <autocommit>true</autocommit>
+		              <onError>continue</onError>
+		              <srcFiles>
+		                <srcFile>target/scripts/h2.sql</srcFile>
+		              </srcFiles>
+		            </configuration>
+		          </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>single</goal>
+                        </goals>
+                        <configuration>
+                            <finalName>ode-db-derby-ojpa-${project.version}</finalName>
+                            <appendAssemblyId>false</appendAssemblyId>
+                            <descriptors>
+                                <descriptor>src/main/assembly/bin.xml</descriptor>
+                            </descriptors>
+                            <tarLongFileMode>gnu</tarLongFileMode>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Propchange: ode/trunk/dao-jpa-db/pom.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/shutdown.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/shutdown.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/shutdown.sql (added)
+++ ode/trunk/dao-jpa-db/shutdown.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1 @@
+connect 'jdbc:derby:;shutdown=true';

Propchange: ode/trunk/dao-jpa-db/shutdown.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/assembly/bin.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/assembly/bin.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/assembly/bin.xml (added)
+++ ode/trunk/dao-jpa-db/src/main/assembly/bin.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<assembly>
+  <!-- id typically identifies the "type" (src vs bin etc) of the assembly -->
+  <id></id>
+  <includeBaseDirectory>false</includeBaseDirectory>
+  <formats>
+    <format>zip</format>
+  </formats>
+
+  <fileSets>
+    <fileSet>
+        <outputDirectory>/</outputDirectory>
+      <directory>target</directory>
+      <includes>
+        <include>scripts/*.sql</include>
+        <include>ode-db/**</include>
+      </includes>
+       <excludes>
+        <exclude>partial.*.sql</exclude>
+      </excludes>
+    </fileSet>
+  </fileSets>
+
+
+</assembly>

Propchange: ode/trunk/dao-jpa-db/src/main/assembly/bin.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.derby.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/descriptors/persistence.derby.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/descriptors/persistence.derby.xml (added)
+++ ode/trunk/dao-jpa-db/src/main/descriptors/persistence.derby.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+  <persistence-unit name="ode-unit-test-embedded">
+    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+    <class>org.apache.ode.dao.jpa.bpel.EventDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.FaultDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ResourceRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MexProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ActivityRecoveryDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ContextValueDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelatorDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrSetProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessInstanceDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.PartnerLinkDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelationSetDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ScopeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageDAOImpl</class>
+
+    <class>org.apache.ode.dao.jpa.store.ProcessConfDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.ProcessConfPropertyDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.DeploymentUnitDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.VersionTrackerDAOImpl</class>
+
+    <properties>
+      <!-- Properties for an embedded Derby connection -->
+      <property name="openjpa.ConnectionDriverName" value="org.apache.commons.dbcp.BasicDataSource"/>
+      <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DerbyDictionary"/>
+      <!-- To validate DBSchema and create DDL at runtime - use this property. Currently the DDL is created at build time -->
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+
+      <property name="openjpa.ConnectionProperties"
+                value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:target/database/openjpa-test-database;create=true,MaxActive=100,MaxWait=10000,TestOnBorrow=true"/>
+
+    </properties>
+  </persistence-unit>
+</persistence>
+

Propchange: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.derby.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.h2.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/descriptors/persistence.h2.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/descriptors/persistence.h2.xml (added)
+++ ode/trunk/dao-jpa-db/src/main/descriptors/persistence.h2.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+  <persistence-unit name="ode-unit-test-embedded">
+    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+    <class>org.apache.ode.dao.jpa.bpel.EventDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.FaultDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ResourceRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MexProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ActivityRecoveryDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ContextValueDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelatorDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrSetProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessInstanceDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.PartnerLinkDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelationSetDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ScopeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageDAOImpl</class>
+
+    <class>org.apache.ode.dao.jpa.store.ProcessConfDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.ProcessConfPropertyDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.DeploymentUnitDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.VersionTrackerDAOImpl</class>
+
+    <properties>
+      <!-- Properties for an embedded Derby connection -->
+      <property name="openjpa.ConnectionDriverName" value="org.apache.commons.dbcp.BasicDataSource"/>
+      <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.H2Dictionary"/>
+      <!-- To validate DBSchema and create DDL at runtime - use this property. Currently the DDL is created at build time -->
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+
+      <property name="openjpa.ConnectionProperties"
+                value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:target/database/openjpa-test-database;create=true,MaxActive=100,MaxWait=10000,TestOnBorrow=true"/>
+
+    </properties>
+  </persistence-unit>
+</persistence>
+

Propchange: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.h2.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.mysql.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/descriptors/persistence.mysql.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/descriptors/persistence.mysql.xml (added)
+++ ode/trunk/dao-jpa-db/src/main/descriptors/persistence.mysql.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+  <persistence-unit name="ode-unit-test-embedded">
+    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+       <class>org.apache.ode.dao.jpa.bpel.EventDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.FaultDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ResourceRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MexProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ActivityRecoveryDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ContextValueDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelatorDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrSetProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessInstanceDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.PartnerLinkDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelationSetDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ScopeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageDAOImpl</class>
+
+    <class>org.apache.ode.dao.jpa.store.ProcessConfDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.ProcessConfPropertyDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.DeploymentUnitDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.VersionTrackerDAOImpl</class>
+
+    <properties>
+      <!-- Properties for an embedded Derby connection -->
+      <property name="openjpa.ConnectionDriverName" value="org.apache.commons.dbcp.BasicDataSource"/>
+      <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.MySQLDictionary"/>
+      <!-- To validate DBSchema and create DDL at runtime - use this property. Currently the DDL is created at build time -->
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+
+      <property name="openjpa.ConnectionProperties"
+                value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:target/database/openjpa-test-database;create=true,MaxActive=100,MaxWait=10000,TestOnBorrow=true"/>
+
+    </properties>
+  </persistence-unit>
+</persistence>
+

Propchange: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.mysql.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.oracle.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/descriptors/persistence.oracle.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/descriptors/persistence.oracle.xml (added)
+++ ode/trunk/dao-jpa-db/src/main/descriptors/persistence.oracle.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+  <persistence-unit name="ode-unit-test-embedded">
+    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+       <class>org.apache.ode.dao.jpa.bpel.EventDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.FaultDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ResourceRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MexProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ActivityRecoveryDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ContextValueDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelatorDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrSetProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessInstanceDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.PartnerLinkDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelationSetDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ScopeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageDAOImpl</class>
+
+    <class>org.apache.ode.dao.jpa.store.ProcessConfDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.ProcessConfPropertyDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.DeploymentUnitDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.VersionTrackerDAOImpl</class>
+
+
+    <properties>
+      <!-- Properties for an embedded Derby connection -->
+      <property name="openjpa.ConnectionDriverName" value="org.apache.commons.dbcp.BasicDataSource"/>
+      <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.OracleDictionary"/>
+      <!-- To validate DBSchema and create DDL at runtime - use this property. Currently the DDL is created at build time -->
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+
+      <property name="openjpa.ConnectionProperties"
+                value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:target/database/openjpa-test-database;create=true,MaxActive=100,MaxWait=10000,TestOnBorrow=true"/>
+
+    </properties>
+  </persistence-unit>
+</persistence>
+

Propchange: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.oracle.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.postgres.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/descriptors/persistence.postgres.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/descriptors/persistence.postgres.xml (added)
+++ ode/trunk/dao-jpa-db/src/main/descriptors/persistence.postgres.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+  <persistence-unit name="ode-unit-test-embedded">
+    <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+       <class>org.apache.ode.dao.jpa.bpel.EventDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.FaultDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ResourceRouteDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MexProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ActivityRecoveryDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ContextValueDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelatorDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrSetProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.ProcessInstanceDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.XmlDataProperty</class>
+    <class>org.apache.ode.dao.jpa.bpel.PartnerLinkDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.CorrelationSetDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.ScopeDAOImpl</class>
+    <class>org.apache.ode.dao.jpa.bpel.MessageDAOImpl</class>
+
+    <class>org.apache.ode.dao.jpa.store.ProcessConfDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.ProcessConfPropertyDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.DeploymentUnitDaoImpl</class>
+    <class>org.apache.ode.dao.jpa.store.VersionTrackerDAOImpl</class>
+
+    <properties>
+      <!-- Properties for an embedded Derby connection -->
+      <property name="openjpa.ConnectionDriverName" value="org.apache.commons.dbcp.BasicDataSource"/>
+      <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.PostgresDictionary"/>
+      <!-- To validate DBSchema and create DDL at runtime - use this property. Currently the DDL is created at build time -->
+      <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+
+      <property name="openjpa.ConnectionProperties"
+                value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:target/database/openjpa-test-database;create=true,MaxActive=100,MaxWait=10000,TestOnBorrow=true"/>
+
+    </properties>
+  </persistence-unit>
+</persistence>
+

Propchange: ode/trunk/dao-jpa-db/src/main/descriptors/persistence.postgres.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/scripts/common.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/scripts/common.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/scripts/common.sql (added)
+++ ode/trunk/dao-jpa-db/src/main/scripts/common.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,2 @@
+create table ODE_SCHEMA_VERSION (VERSION integer);
+insert into ODE_SCHEMA_VERSION values (6);

Propchange: ode/trunk/dao-jpa-db/src/main/scripts/common.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/scripts/license-header.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/scripts/license-header.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/scripts/license-header.sql (added)
+++ ode/trunk/dao-jpa-db/src/main/scripts/license-header.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,19 @@
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--    http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+-- KIND, either express or implied.  See the License for the
+-- specific language governing permissions and limitations
+-- under the License.
+--
+ 

Propchange: ode/trunk/dao-jpa-db/src/main/scripts/license-header.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-derby.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/scripts/simplesched-derby.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/scripts/simplesched-derby.sql (added)
+++ ode/trunk/dao-jpa-db/src/main/scripts/simplesched-derby.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,30 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- Apache Derby scripts by Maciej Szefler.
+-- 
+-- 
+
+CREATE TABLE ode_job (
+  jobid CHAR(64)  NOT NULL DEFAULT '',
+  ts BIGINT  NOT NULL DEFAULT 0,
+  nodeid char(64),
+  scheduled int  NOT NULL DEFAULT 0,
+  transacted int  NOT NULL DEFAULT 0,
+
+  instanceId BIGINT,
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt blob(4096),
+
+  PRIMARY KEY(jobid));
+
+CREATE INDEX IDX_ODE_JOB_TS ON ode_job(ts);
+CREATE INDEX IDX_ODE_JOB_NODEID ON ode_job(nodeid);
+
+

Propchange: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-derby.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-h2.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/scripts/simplesched-h2.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/scripts/simplesched-h2.sql (added)
+++ ode/trunk/dao-jpa-db/src/main/scripts/simplesched-h2.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,30 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- Apache Derby scripts by Maciej Szefler.
+-- 
+-- 
+
+CREATE TABLE ode_job (
+  jobid CHAR(64)  NOT NULL DEFAULT '',
+  ts BIGINT  NOT NULL DEFAULT 0,
+  nodeid char(64),
+  scheduled int  NOT NULL DEFAULT 0,
+  transacted int  NOT NULL DEFAULT 0,
+
+  instanceId BIGINT,
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt varbinary,
+
+  PRIMARY KEY(jobid));
+
+CREATE INDEX IDX_ODE_JOB_TS ON ode_job(ts);
+CREATE INDEX IDX_ODE_JOB_NODEID ON ode_job(nodeid);
+
+

Propchange: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-h2.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-mysql.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/scripts/simplesched-mysql.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/scripts/simplesched-mysql.sql (added)
+++ ode/trunk/dao-jpa-db/src/main/scripts/simplesched-mysql.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,33 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- MySQL scripts by Maciej Szefler.
+-- 
+-- 
+DROP TABLE IF EXISTS ODE_JOB;
+
+CREATE TABLE ODE_JOB (
+  jobid CHAR(64)  NOT NULL DEFAULT '',
+  ts BIGINT  NOT NULL DEFAULT 0,
+  nodeid char(64)  NULL,
+  scheduled int  NOT NULL DEFAULT 0,
+  transacted int  NOT NULL DEFAULT 0,
+
+  instanceId BIGINT,
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt blob(4096),
+
+  PRIMARY KEY(jobid),
+  INDEX IDX_ODE_JOB_TS(ts),
+  INDEX IDX_ODE_JOB_NODEID(nodeid)
+)
+TYPE=InnoDB;
+
+COMMIT;
+

Propchange: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-mysql.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-oracle.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/scripts/simplesched-oracle.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/scripts/simplesched-oracle.sql (added)
+++ ode/trunk/dao-jpa-db/src/main/scripts/simplesched-oracle.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,32 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- Apache Derby scripts by Maciej Szefler.
+-- 
+-- 
+
+DROP TABLE ode_job;
+
+CREATE TABLE ode_job (
+  jobid VARCHAR(64)  NOT NULL,
+  ts number(37)  NOT NULL,
+  nodeid varchar(64),
+  scheduled int  NOT NULL,
+  transacted int  NOT NULL,
+  
+  instanceId number(37),
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt blob,
+
+  PRIMARY KEY(jobid));
+
+CREATE INDEX IDX_ODE_JOB_TS ON ode_job(ts);
+CREATE INDEX IDX_ODE_JOB_NODEID ON ode_job(nodeid);
+
+

Propchange: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-oracle.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-postgres.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/main/scripts/simplesched-postgres.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/main/scripts/simplesched-postgres.sql (added)
+++ ode/trunk/dao-jpa-db/src/main/scripts/simplesched-postgres.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,30 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- Apache Derby scripts by Maciej Szefler.
+-- 
+-- 
+
+CREATE TABLE ode_job (
+  jobid CHAR(64)  NOT NULL DEFAULT '',
+  ts BIGINT  NOT NULL DEFAULT 0,
+  nodeid char(64),
+  scheduled int  NOT NULL DEFAULT 0,
+  transacted int  NOT NULL DEFAULT 0,
+
+  instanceId BIGINT,
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt bytea,
+
+  PRIMARY KEY(jobid));
+
+CREATE INDEX IDX_ODE_JOB_TS ON ode_job(ts);
+CREATE INDEX IDX_ODE_JOB_NODEID ON ode_job(nodeid);
+
+

Propchange: ode/trunk/dao-jpa-db/src/main/scripts/simplesched-postgres.sql
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-db/src/test/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-db/src/test/resources/META-INF/persistence.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-db/src/test/resources/META-INF/persistence.xml (added)
+++ ode/trunk/dao-jpa-db/src/test/resources/META-INF/persistence.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+    <persistence-unit name="ode-unit-test-embedded">
+        <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
+        <class>org.apache.ode.dao.jpa.ActivityRecoveryDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.CorrelationSetDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.CorrelatorDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.EventDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.FaultDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.MessageDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.MessageExchangeDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.MessageRouteDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.PartnerLinkDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.ProcessDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.ProcessInstanceDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.ResourceRouteDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.ScopeDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.XmlDataDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.ContextValueDAOImpl</class>
+        <properties>
+            <!-- Properties for an embedded Derby connection 
+            <property name="openjpa.ConnectionDriverName" value="org.apache.commons.dbcp.BasicDataSource"/>
+            <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DerbyDictionary"/>
+             
+            <property name="openjpa.ConnectionProperties"
+                value="DriverClassName=org.apache.derby.jdbc.EmbeddedDriver,Url=jdbc:derby:target/database/derby/ode-test-db;userid=sa;create=false,MaxActive=100,MaxWait=10000,TestOnBorrow=true"/>
+            -->
+
+            <!-- Properties for an embedded Derby connection -->
+            <property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.EmbeddedDriver"/>
+            <property name="openjpa.ConnectionURL" value="jdbc:derby:target/database/derby/ode-test-db;create=false"/>
+            <property name="openjpa.ConnectionUserName" value="SA"/>
+            <property name="openjpa.jdbc.DBDictionary" value="org.apache.openjpa.jdbc.sql.DerbyDictionary"/>
+
+            <!-- Use this property to generate DDL at runtime
+            <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
+            -->
+
+
+        </properties>
+    </persistence-unit>
+</persistence>
+

Propchange: ode/trunk/dao-jpa-db/src/test/resources/META-INF/persistence.xml
------------------------------------------------------------------------------
    svn:executable = *

Added: ode/trunk/dao-jpa-hibernate/build.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/build.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/build.xml (added)
+++ ode/trunk/dao-jpa-hibernate/build.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ============================================================ -->
+<!--  JBoss, the OpenSource J2EE webOS                            -->
+<!--  Distributable under LGPL license.                           -->
+<!--  See terms of license at http://www.gnu.org.                 -->
+<!-- ============================================================ -->
+
+
+<project>
+
+	<property name="db.scripts.dir" value="${basedir}/target" />
+	<property name="descriptor.dir" value="${basedir}/src/main/descriptors"/>
+	<property name="scripts.dir" value="${basedir}/src/main/scripts"/>
+	<property name="META-INF.dir" value="${basedir}/src/main/resources/META-INF" />
+	
+	<path id="classpath">
+	  <pathelement path="${maven.runtime.classpath}"/>
+	</path>
+	
+	
+  <!-- ================================================================== -->
+  <!-- jbossidm Database schema                                               -->
+  <!-- ================================================================== -->
+	
+  <target name="create-schema">
+  	
+	<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" 
+		 classpathref="classpath"/>
+
+    <mkdir dir="target"/>
+  	<mkdir dir="target/db" />
+  	<mkdir dir="${db.scripts.dir}" />
+
+    <create-ddl db="hsql"/>
+
+
+  </target>
+
+  <!--
+     ============================================
+     Macro defs, no need to change anything below
+     ============================================
+  -->
+
+  <macrodef name="create-ddl">
+    <attribute name="db"/>
+
+    <sequential>
+      <echo></echo>
+      <echo>=====================</echo>
+      <echo>Create DDL @{db}</echo>
+      
+      <copy file="${descriptor.dir}/persistence.db.xml"
+                toFile="${META-INF.dir}/persistence.xml"
+                overwrite="true">
+        <filterset filtersfile="${basedir}/src/main/files/hibernate.cfg/@{db}.properties" />
+       </copy>
+    	
+        <hibernatetool destdir="${db.scripts.dir}">
+            <jpaconfiguration persistenceunit="ode-unit-test-embedded"/>
+            <hbm2ddl drop="false" create="true" export="${export}" console="false" 
+                    outputfilename="partial.@{db}.sql" delimiter=";" format="true" />
+        </hibernatetool>    	
+        <concat destfile="${db.scripts.dir}/scripts/@{db}.sql">
+          <fileset file="${scripts.dir}/license-header.sql"/>
+          <fileset file="${scripts.dir}/common.sql"/>
+          <fileset file="${scripts.dir}/simplesched-@{db}.sql"/>
+          <fileset file="${db.scripts.dir}/partial.@{db}.sql"/>
+        </concat>
+
+      <echo>Done.</echo>
+      <echo>=====================</echo>
+    </sequential>
+  </macrodef>
+
+</project>

Added: ode/trunk/dao-jpa-hibernate/pom.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/pom.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/pom.xml (added)
+++ ode/trunk/dao-jpa-hibernate/pom.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,105 @@
+<?xml version="1.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+-->
+<project xmlns:pom="http://maven.apache.org/POM/4.0.0">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.ode</groupId>
+  <artifactId>ode-dao-jpa-hibernate</artifactId>
+  <name>ODE :: JPA Hibernate DAO Impl</name>
+
+  <parent>
+    <groupId>org.apache.ode</groupId>
+    <artifactId>ode</artifactId>
+    <version>1.3.5-SNAPSHOT</version>
+  </parent>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.ode</groupId>
+      <artifactId>ode-bpel-schemas</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.ode</groupId>
+      <artifactId>ode-bpel-epr</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jta_1.1_spec</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>javax.persistence</groupId>
+      <artifactId>persistence-api</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.ode</groupId>
+      <artifactId>ode-dao-jpa</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate-entitymanager</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate-tools</artifactId>
+      <version>3.2.0.ga</version>
+    </dependency>
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate-annotations</artifactId>
+      <version>3.4.0.GA</version>
+    </dependency>
+    <dependency>
+      <groupId>javassist</groupId>
+      <artifactId>javassist</artifactId>
+    </dependency> 
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+    </dependency>
+  </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>create-db-schemas</id>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <property name="maven.runtime.classpath" refid="maven.compile.classpath"/>
+                                <ant antfile="build.xml" target="create-schema" />
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Added: ode/trunk/dao-jpa-hibernate/src/main/descriptors/persistence.db.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/descriptors/persistence.db.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/descriptors/persistence.db.xml (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/descriptors/persistence.db.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+    <persistence-unit name="ode-unit-test-embedded">
+        <provider>org.hibernate.ejb.HibernatePersistence</provider>
+        
+        <class>org.apache.ode.dao.jpa.bpel.ActivityRecoveryDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.CorrelationSetDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.CorrelatorDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.EventDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.FaultDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.MessageDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.MessageRouteDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.PartnerLinkDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.ProcessDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.ProcessInstanceDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.ScopeDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.XmlDataDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.CorrSetProperty</class>
+        <class>org.apache.ode.dao.jpa.bpel.MexProperty</class>
+        <class>org.apache.ode.dao.jpa.bpel.XmlDataProperty</class>
+        
+	    <class>org.apache.ode.dao.jpa.store.ProcessConfDaoImpl</class>
+	    <class>org.apache.ode.dao.jpa.store.ProcessConfPropertyDaoImpl</class>
+	    <class>org.apache.ode.dao.jpa.store.DeploymentUnitDaoImpl</class>
+	    <class>org.apache.ode.dao.jpa.store.VersionTrackerDAOImpl</class>
+
+         <properties>
+          <property name="hibernate.show_sql" value="false" />
+          <property name="hibernate.dialect" value="@dialect@" />
+          <property name="hibernate.connection.datasource" value="java:BPELDB" />
+          <property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory" />
+          <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
+          <property name="jta.UserTransaction" value="jta.UserTransaction" />
+        </properties>
+    </persistence-unit>
+</persistence>
+

Added: ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/hsql.properties
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/hsql.properties?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/hsql.properties (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/hsql.properties Wed Aug 18 04:12:49 2010
@@ -0,0 +1 @@
+dialect=org.hibernate.dialect.H2Dialect
\ No newline at end of file

Added: ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/mysql.properties
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/mysql.properties?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/mysql.properties (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/mysql.properties Wed Aug 18 04:12:49 2010
@@ -0,0 +1 @@
+dialect=org.hibernate.dialect.MySQLInnoDBDialect
\ No newline at end of file

Added: ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/oracle.properties
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/oracle.properties?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/oracle.properties (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/oracle.properties Wed Aug 18 04:12:49 2010
@@ -0,0 +1 @@
+dialect=org.hibernate.dialect.OracleDialect
\ No newline at end of file

Added: ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/postgres.properties
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/postgres.properties?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/postgres.properties (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/postgres.properties Wed Aug 18 04:12:49 2010
@@ -0,0 +1 @@
+dialect=org.hibernate.dialect.PostgreSQLDialect
\ No newline at end of file

Added: ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/sqlserver.properties
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/sqlserver.properties?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/sqlserver.properties (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/files/hibernate.cfg/sqlserver.properties Wed Aug 18 04:12:49 2010
@@ -0,0 +1 @@
+dialect=org.hibernate.dialect.SQLServerDialect

Added: ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/BpelDAOConnectionFactoryImpl.java Wed Aug 18 04:12:49 2010
@@ -0,0 +1,112 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.dao.jpa.hibernate;
+
+import java.util.Map;
+import java.util.Properties;
+
+import javax.persistence.EntityManager;
+import javax.persistence.EntityManagerFactory;
+import javax.persistence.Persistence;
+import javax.sql.DataSource;
+import javax.transaction.TransactionManager;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ode.dao.bpel.BpelDAOConnection;
+import org.apache.ode.dao.bpel.BpelDAOConnectionFactory;
+import org.apache.ode.dao.jpa.JpaOperator;
+import org.apache.ode.dao.jpa.bpel.BpelDAOConnectionImpl;
+import org.apache.ode.il.config.OdeConfigProperties;
+
+/**
+
+ */
+public class BpelDAOConnectionFactoryImpl implements BpelDAOConnectionFactory {
+
+    static final Log __log = LogFactory.getLog(BpelDAOConnectionFactoryImpl.class);
+    JpaOperator _operator = new JpaOperatorImpl();
+    EntityManagerFactory _emf;
+    TransactionManager _txm;
+    DataSource _ds;
+
+    public void init(Properties odeConfig, TransactionManager txm, Object env) {
+        this._txm = txm;
+        this._ds = (DataSource) env;
+        Map emfProperties = HibernateUtil.buildConfig(OdeConfigProperties.PROP_DAOCF + ".", odeConfig, _txm, _ds);
+        _emf = Persistence.createEntityManagerFactory("ode-bpel", emfProperties);
+
+    }
+
+    public BpelDAOConnection getConnection() {
+        final ThreadLocal<BpelDAOConnectionImpl> currentConnection = BpelDAOConnectionImpl.getThreadLocal();
+
+        BpelDAOConnectionImpl conn = (BpelDAOConnectionImpl) currentConnection.get();
+        if (conn != null && HibernateUtil.isOpen(conn)) {
+            return conn;
+        } else {
+            EntityManager em = _emf.createEntityManager();
+            conn = new BpelDAOConnectionImpl(em, _txm, _operator);
+            currentConnection.set(conn);
+            return conn;
+        }
+    }
+
+    public void shutdown() {
+        _emf.close();
+    }
+
+
+    //private static final String DEFAULT_HIBERNATE_DIALECT = "org.hibernate.dialect.DerbyDialect";
+    
+    //Because the JBoss AS 5.1.0.GA uses Hibernate 3.3.1.GA
+    //While SOA-P 5 uses Hibernate 3.3.2.GA, they are different for guessDialect, so comment it now.
+    
+/*    private static String guessDialect(DataSource dataSource) {
+
+        String dialect = null;
+        // Open a connection and use that connection to figure out database
+        // product name/version number in order to decide which Hibernate
+        // dialect to use.
+        Connection conn = null;
+        try {
+            conn = dataSource.getConnection();
+            Dialect d = DialectFactory.buildDialect(new Properties(), conn);
+            dialect = d.getClass().getName();
+        } catch (SQLException se) {
+            __log.error(se);
+        } finally {
+            try {
+                conn.close();
+            } catch (SQLException ex) {
+                __log.error(ex);
+            }
+        }
+
+        if (dialect == null) {
+            __log.info("Cannot determine hibernate dialect for this database: using the default one.");
+            dialect = DEFAULT_HIBERNATE_DIALECT;
+        }
+
+        return dialect;
+
+    }  */  
+
+}
+

Added: ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/ConfStoreDAOConnectionFactoryImpl.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/ConfStoreDAOConnectionFactoryImpl.java?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/ConfStoreDAOConnectionFactoryImpl.java (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/ConfStoreDAOConnectionFactoryImpl.java Wed Aug 18 04:12:49 2010
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.dao.jpa.hibernate;
+
+import java.util.Map;
+import java.util.Properties;
+
+import javax.persistence.EntityManager;
+import javax.persistence.EntityManagerFactory;
+import javax.persistence.Persistence;
+import javax.sql.DataSource;
+import javax.transaction.TransactionManager;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ode.dao.jpa.JpaOperator;
+import org.apache.ode.dao.jpa.store.ConfStoreDAOConnectionImpl;
+import org.apache.ode.dao.store.ConfStoreDAOConnection;
+import org.apache.ode.dao.store.ConfStoreDAOConnectionFactory;
+import org.apache.ode.il.config.OdeConfigProperties;
+/**
+
+ */
+public class ConfStoreDAOConnectionFactoryImpl implements ConfStoreDAOConnectionFactory {
+  
+  static final Log __log = LogFactory.getLog(ConfStoreDAOConnectionFactoryImpl.class);
+  EntityManagerFactory _emf;
+  TransactionManager _txm;
+  DataSource _ds;
+  JpaOperator _operator = new JpaOperatorImpl();
+
+
+  public void init(Properties odeConfig,TransactionManager txm, Object env) {
+    this._txm = txm;
+    this._ds = (DataSource) env;
+    Map emfProperties = HibernateUtil.buildConfig(OdeConfigProperties.PROP_DAOCF + ".", odeConfig, _txm, _ds);
+    _emf = Persistence.createEntityManagerFactory("ode-store", emfProperties);
+
+  }
+
+  public ConfStoreDAOConnection getConnection() {
+    final ThreadLocal<ConfStoreDAOConnectionImpl> currentConnection = ConfStoreDAOConnectionImpl.getThreadLocal();
+
+    ConfStoreDAOConnectionImpl conn = (ConfStoreDAOConnectionImpl)currentConnection.get();
+    if (conn != null && HibernateUtil.isOpen(conn)) {
+      return conn;
+    } else {
+      EntityManager em = _emf.createEntityManager();
+      conn = new ConfStoreDAOConnectionImpl(em, _txm, _operator);
+      currentConnection.set(conn);
+      return conn;
+    }
+  }
+
+   public void shutdown() {
+    _emf.close();
+  }
+}

Added: ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/DataSourceConnectionProvider.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/DataSourceConnectionProvider.java?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/DataSourceConnectionProvider.java (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/DataSourceConnectionProvider.java Wed Aug 18 04:12:49 2010
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ode.dao.jpa.hibernate;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.util.Properties;
+
+import org.apache.ode.utils.DbIsolation;
+
+import org.hibernate.HibernateException;
+import org.hibernate.connection.ConnectionProvider;
+
+
+public class DataSourceConnectionProvider implements ConnectionProvider {
+
+  private Properties _props;
+  
+  public DataSourceConnectionProvider() {
+  }
+  
+  public void configure(Properties props) throws HibernateException {
+    _props = props;
+  }
+
+  public Connection getConnection() throws SQLException {
+    Connection c = HibernateUtil.getConnection(_props);
+    DbIsolation.setIsolationLevel(c);
+    return c;
+  }
+
+  public void closeConnection(Connection con) throws SQLException {
+    con.close();
+  }
+
+  public void close() throws HibernateException {
+
+  }
+
+  public boolean supportsAggressiveRelease() {
+    return true;
+  }
+
+}

Added: ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateTransactionManagerLookup.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateTransactionManagerLookup.java?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateTransactionManagerLookup.java (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateTransactionManagerLookup.java Wed Aug 18 04:12:49 2010
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.dao.jpa.hibernate;
+
+import java.util.Properties;
+
+import javax.transaction.TransactionManager;
+import javax.transaction.Transaction;
+
+import org.hibernate.HibernateException;
+import org.hibernate.transaction.TransactionManagerLookup;
+
+/**
+ * Implementation of the {@link org.hibernate.transaction.TransactionManagerLookup} interface that
+ * uses {@link HibernateUtil} to obtain the JTA {@link TransactionManager} object.
+ */
+public class HibernateTransactionManagerLookup implements TransactionManagerLookup {
+
+	/** Constructor. */
+	public HibernateTransactionManagerLookup() {
+		super();
+	}
+
+	public TransactionManager getTransactionManager(Properties props)
+			throws HibernateException {
+		return HibernateUtil.getTransactionManager(props);
+	}
+
+	public String getUserTransactionName() {
+		return null;
+	}
+
+    public Object getTransactionIdentifier(Transaction transaction) {
+        return transaction;
+    }
+}

Added: ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateUtil.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateUtil.java?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateUtil.java (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/HibernateUtil.java Wed Aug 18 04:12:49 2010
@@ -0,0 +1,161 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.dao.jpa.hibernate;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Properties;
+
+import javax.persistence.EntityManager;
+import javax.sql.DataSource;
+import javax.transaction.TransactionManager;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ode.dao.jpa.JpaConnection;
+import org.apache.ode.il.config.OdeConfigProperties;
+import org.apache.ode.utils.GUID;
+import org.hibernate.cfg.Environment;
+import org.hibernate.ejb.EntityManagerImpl;
+
+/**
+ * Manages datasource and transaction, for hibernate usage.
+ * 
+ * setup Hibernate specific initialization.
+ * 
+ */
+public class HibernateUtil {
+	
+	static final Log __log = LogFactory.getLog(HibernateUtil.class);
+	
+    public static final String PROP_GUID = "ode.hibernate.guid";
+
+    private static final Map<String, TransactionManager> _txManagers = Collections.synchronizedMap(new HashMap<String, TransactionManager>());
+    private static final Map<String, DataSource> _dataSources = Collections.synchronizedMap(new HashMap<String,DataSource>());
+
+    public static void registerTransactionManager(String uuid, TransactionManager txm) {
+        _txManagers.put(uuid, txm);
+    }
+    
+    public static void registerDatasource(String uuid, DataSource ds){
+    	_dataSources.put(uuid, ds);
+    }
+
+    public static TransactionManager getTransactionManager(Properties props) {
+        String guid = props.getProperty(PROP_GUID);
+        TransactionManager mgr = _txManagers.get(guid);
+        if (__log.isDebugEnabled()) {
+        	__log.debug("guid is: " + guid + ", TransactionManager is: " + mgr);
+        }
+        return mgr;
+    }
+
+    public static Connection getConnection(Properties props) throws SQLException {
+        String guid = props.getProperty(PROP_GUID);
+        Connection conn =  _dataSources.get(guid).getConnection();
+        if (__log.isDebugEnabled()) {
+        	__log.debug("guid is: " + guid + ", Connection is: " + conn);
+        }
+        return conn;
+    }
+    
+    public static Map buildConfig(String prefix, Properties odeConfig, TransactionManager txm, DataSource ds) {
+        Map props = new HashMap();
+        props.put("javax.persistence.provider", "org.hibernate.ejb.HibernatePersistence");
+        
+        addEntries(prefix, odeConfig, props);
+
+        String guid = new GUID().toString();
+        if (ds != null) {
+            props.put(Environment.CONNECTION_PROVIDER, DataSourceConnectionProvider.class.getName());
+            registerDatasource(guid, ds);
+        }
+        if (txm != null) {
+            props.put(Environment.CURRENT_SESSION_CONTEXT_CLASS, "jta");
+            props.put(Environment.TRANSACTION_MANAGER_STRATEGY, HibernateTransactionManagerLookup.class.getName());
+            //props.put(Environment.TRANSACTION_STRATEGY, "org.apache.ode.dao.jpa.hibernate.JotmTransactionFactory");
+            HibernateUtil.registerTransactionManager(guid, txm);
+            props.put("javax.persistence.transactionType", "JTA");
+        } else {
+            props.put("javax.persistence.transactionType", "RESOURCE_LOCAL");
+        }
+
+        if (ds != null || txm != null) {
+            props.put(HibernateUtil.PROP_GUID, guid);
+        }
+
+        if (Boolean.valueOf(odeConfig.getProperty(OdeConfigProperties.PROP_DB_EMBEDDED_CREATE, "true"))) {
+            props.put(Environment.HBM2DDL_AUTO, "create-drop");
+            __log.debug("create-drop DDL by Hibernate automatically");
+        }
+
+        if (__log.isDebugEnabled()) {
+        	__log.debug("========= Hibernate properties ==============");
+        	for (Iterator it = props.keySet().iterator(); it.hasNext(); ) {
+        		Object key = it.next();
+        		__log.debug("key : " + key + ", value : " + props.get(key));
+        	}
+        	__log.debug("==============================================");
+        }
+
+        return props;
+    }
+
+    private static void addEntries(String prefix, Properties odeConfig, Map props) {
+        if (odeConfig != null) {
+            for (Map.Entry me : odeConfig.entrySet()) {
+                String key = (String) me.getKey();
+                if (key.startsWith(prefix)) {
+                    String jpaKey = key.substring(prefix.length() - 1);
+                    String val = (String) me.getValue();
+                    if (val == null || val.trim().length() == 0) {
+                        props.remove(jpaKey);
+                    } else {
+                        props.put(jpaKey, me.getValue());
+                    }
+                } else if (key.startsWith("hibernate")) {
+                	props.put(key, me.getValue());
+                }
+            }
+        }
+    }
+    
+    /*
+     * For some reason Hibernate does not mark an EntityManager as being closed when
+     * the EntityManagerFactory that created it is closed. This method performs a
+     * deep introspection to determine if the EntityManager is still viable.
+     */
+    public static boolean isOpen(JpaConnection conn) {
+        EntityManager mgr = conn.getEntityManager();
+        if (mgr == null) {
+            return false;
+        } else if (mgr instanceof EntityManagerImpl) {
+            EntityManagerImpl mgrImpl = (EntityManagerImpl) mgr;
+            return !mgrImpl.getSession().getSessionFactory().isClosed();
+        } else {
+            return !conn.isClosed();
+        }
+    }
+    
+    
+}

Added: ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/JpaOperatorImpl.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/JpaOperatorImpl.java?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/JpaOperatorImpl.java (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/java/org/apache/ode/dao/jpa/hibernate/JpaOperatorImpl.java Wed Aug 18 04:12:49 2010
@@ -0,0 +1,47 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ode.dao.jpa.hibernate;
+
+import java.util.Iterator;
+
+import javax.persistence.Query;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.ode.dao.jpa.JpaOperator;
+
+/**
+ * 
+ * @author Jeff Yu
+ */
+public class JpaOperatorImpl implements JpaOperator {
+
+    private static final Log __log = LogFactory.getLog(JpaOperatorImpl.class);
+
+    public <T> void batchUpdateByIds(Iterator<T> ids, Query query, String parameterName) {
+        while (ids.hasNext()) {
+            query.setParameter(parameterName, ids.next());
+            query.executeUpdate();
+        }
+    }
+
+    public void setBatchSize(Query query, int limit) {
+        //TODO
+    }
+}

Added: ode/trunk/dao-jpa-hibernate/src/main/resources/META-INF/persistence.xml
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/resources/META-INF/persistence.xml?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/resources/META-INF/persistence.xml (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/resources/META-INF/persistence.xml Wed Aug 18 04:12:49 2010
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~    http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
+    <persistence-unit name="ode-unit-test-embedded">
+        <provider>org.hibernate.ejb.HibernatePersistence</provider>
+        
+        <class>org.apache.ode.dao.jpa.bpel.ActivityRecoveryDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.CorrelationSetDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.CorrelatorDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.EventDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.FaultDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.MessageDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.MessageExchangeDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.MessageRouteDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.PartnerLinkDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.ProcessDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.ProcessInstanceDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.ScopeDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.XmlDataDAOImpl</class>
+        <class>org.apache.ode.dao.jpa.bpel.CorrSetProperty</class>
+        <class>org.apache.ode.dao.jpa.bpel.MexProperty</class>
+        <class>org.apache.ode.dao.jpa.bpel.XmlDataProperty</class>
+        
+	    <class>org.apache.ode.dao.jpa.store.ProcessConfDaoImpl</class>
+	    <class>org.apache.ode.dao.jpa.store.ProcessConfPropertyDaoImpl</class>
+	    <class>org.apache.ode.dao.jpa.store.DeploymentUnitDaoImpl</class>
+	    <class>org.apache.ode.dao.jpa.store.VersionTrackerDAOImpl</class>
+
+         <properties>
+          <property name="hibernate.show_sql" value="false" />
+          <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect" />
+          <property name="hibernate.connection.datasource" value="java:BPELDB" />
+          <property name="hibernate.transaction.factory_class" value="org.hibernate.transaction.JTATransactionFactory" />
+          <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
+          <property name="jta.UserTransaction" value="jta.UserTransaction" />
+        </properties>
+    </persistence-unit>
+</persistence>
+

Added: ode/trunk/dao-jpa-hibernate/src/main/scripts/common.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/scripts/common.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/scripts/common.sql (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/scripts/common.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,3 @@
+create table ODE_SCHEMA_VERSION(VERSION integer);
+insert into ODE_SCHEMA_VERSION values (6);
+

Added: ode/trunk/dao-jpa-hibernate/src/main/scripts/license-header.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/scripts/license-header.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/scripts/license-header.sql (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/scripts/license-header.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,19 @@
+--
+-- Licensed to the Apache Software Foundation (ASF) under one
+-- or more contributor license agreements.  See the NOTICE file
+-- distributed with this work for additional information
+-- regarding copyright ownership.  The ASF licenses this file
+-- to you under the Apache License, Version 2.0 (the
+-- "License"); you may not use this file except in compliance
+-- with the License.  You may obtain a copy of the License at
+--
+--    http://www.apache.org/licenses/LICENSE-2.0
+--
+-- Unless required by applicable law or agreed to in writing,
+-- software distributed under the License is distributed on an
+-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+-- KIND, either express or implied.  See the License for the
+-- specific language governing permissions and limitations
+-- under the License.
+--
+ 

Added: ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-hsql.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-hsql.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-hsql.sql (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-hsql.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,29 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- Apache Derby scripts by Maciej Szefler.
+-- 
+-- 
+
+CREATE TABLE ODE_JOB (
+  jobid CHAR(64)  NOT NULL DEFAULT '',
+  ts BIGINT  NOT NULL DEFAULT 0,
+  nodeid char(64),
+  scheduled int  NOT NULL DEFAULT 0,
+  transacted int  NOT NULL DEFAULT 0,
+
+  instanceId BIGINT,
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt varbinary,
+
+  PRIMARY KEY(jobid));
+
+CREATE INDEX IDX_ODE_JOB_TS ON ODE_JOB(ts);
+CREATE INDEX IDX_ODE_JOB_NODEID ON ODE_JOB(nodeid);
+

Added: ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-mysql.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-mysql.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-mysql.sql (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-mysql.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,33 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- MySQL scripts by Maciej Szefler.
+-- 
+-- 
+DROP TABLE IF EXISTS ODE_JOB;
+
+CREATE TABLE ODE_JOB (
+  jobid CHAR(64)  NOT NULL DEFAULT '',
+  ts BIGINT  NOT NULL DEFAULT 0,
+  nodeid char(64)  NULL,
+  scheduled int  NOT NULL DEFAULT 0,
+  transacted int  NOT NULL DEFAULT 0,
+
+  instanceId BIGINT,
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt blob(4096),
+
+  PRIMARY KEY(jobid),
+  INDEX IDX_ODE_JOB_TS(ts),
+  INDEX IDX_ODE_JOB_NODEID(nodeid)
+)
+TYPE=InnoDB;
+
+COMMIT;
+

Added: ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-oracle.sql
URL: http://svn.apache.org/viewvc/ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-oracle.sql?rev=986561&view=auto
==============================================================================
--- ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-oracle.sql (added)
+++ ode/trunk/dao-jpa-hibernate/src/main/scripts/simplesched-oracle.sql Wed Aug 18 04:12:49 2010
@@ -0,0 +1,32 @@
+-- Apache ODE - SimpleScheduler Database Schema
+-- 
+-- Apache Derby scripts by Maciej Szefler.
+-- 
+-- 
+
+DROP TABLE ODE_JOB;
+
+CREATE TABLE ODE_JOB (
+  jobid VARCHAR(64)  NOT NULL,
+  ts number(37)  NOT NULL,
+  nodeid varchar(64),
+  scheduled int  NOT NULL,
+  transacted int  NOT NULL,
+  
+  instanceId number(37),
+  mexId varchar(255),
+  processId varchar(255),
+  type varchar(255),
+  channel varchar(255),
+  correlatorId varchar(255),
+  correlationKeySet varchar(255),
+  retryCount int,
+  inMem int,
+  detailsExt blob,
+
+  PRIMARY KEY(jobid));
+
+CREATE INDEX IDX_ODE_JOB_TS ON ODE_JOB(ts);
+CREATE INDEX IDX_ODE_JOB_NODEID ON ODE_JOB(nodeid);
+
+