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/05/02 19:03:00 UTC

svn commit: r940263 [8/16] - in /ode/trunk: ./ axis2-war/ axis2-war/src/main/assembly/ axis2-war/src/main/webapp/WEB-INF/conf.hib-derby/ axis2-war/src/main/webapp/WEB-INF/conf.jpa-derby/ axis2-war/src/main/webapp/WEB-INF/conf/ axis2-war/src/test/java/o...

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessage.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessage.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessage.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessage.java Sun May  2 17:02:51 2010
@@ -0,0 +1,76 @@
+/*
+ * 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.hib.bpel.hobj;
+
+/**
+ * @hibernate.class table="BPEL_UNMATCHED" lazy="true"
+ * @hibernate.query name="SELECT_CORMESSAGE_IDS_BY_INSTANCES" query="select id from HCorrelatorMessage as m where m.messageExchange in(select mex from HMessageExchange as mex where mex.instance in (:instances))"
+ * @hibernate.query name="SELECT_CORMESSAGE_IDS_BY_MEX" query="select id from HCorrelatorMessage as m where m.messageExchange = :mex"
+ */
+public class HCorrelatorMessage extends HObject {
+    public final static String SELECT_CORMESSAGE_IDS_BY_MEX = "SELECT_CORMESSAGE_IDS_BY_MEX";
+    public final static String SELECT_CORMESSAGE_IDS_BY_INSTANCES = "SELECT_CORMESSAGE_IDS_BY_INSTANCES";
+
+    private HMessageExchange _messageExchange;
+    private HCorrelator _correlator;
+    private String _correlationKey;
+
+    /**
+     * @hibernate.many-to-one column="MEX" foreign-key="none"
+     */
+    public HMessageExchange getMessageExchange() {
+        return _messageExchange;
+    }
+
+    public void setMessageExchange(HMessageExchange data) {
+        _messageExchange = data;
+    }
+
+    @Override
+    public String toString() {
+        return "{HCorrelatorMessage correlator=" + this.getCorrelator() + ", ckey=" + getCorrelationKey() + ", mex="
+                + _messageExchange.getId() + "}";
+    }
+
+    /**
+     * @hibernate.property column="CORRELATION_KEY"
+     * @hibernate.column name="CORRELATION_KEY"
+     *                   index="IDX_UNMATCHED_CKEY"
+     *                   
+     */
+    public String getCorrelationKey() {
+        return _correlationKey;
+    }
+
+    public void setCorrelationKey(String correlationKey) {
+        _correlationKey = correlationKey;
+    }
+
+    /**
+     * @hibernate.many-to-one foreign-key="none"
+     * @hibernate.column name="CORRELATOR" index="IDX_UNMATCHED_CORRELATOR" not-null="true"
+     */
+    public HCorrelator getCorrelator() {
+        return _correlator;
+    }
+
+    public void setCorrelator(HCorrelator correlator) {
+        _correlator = correlator;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessageKey.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessageKey.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessageKey.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorMessageKey.java Sun May  2 17:02:51 2010
@@ -0,0 +1,67 @@
+/*
+ * 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.hib.bpel.hobj;
+
+/**
+ * Hibernate table for representing the pre-computed keys for a message
+ * targetted at the BPEL process with no matching instance at the time of
+ * receipt (and createInstance is not possible).
+ * 
+ * @hibernate.class table="BPEL_CORRELATOR_MESSAGE_CKEY"
+ */
+public class HCorrelatorMessageKey extends HObject {
+
+    /** Correlation Key canonical string representation. */
+    private String _keyCanonical;
+
+    private HCorrelatorMessage _owner;
+
+    /** Constructor. */
+    public HCorrelatorMessageKey() {
+        super();
+    }
+
+    /**
+     * Canonical string representation of the correlation key.
+     * 
+     * @hibernate.property column="CKEY" not-null="true"
+     * @hibernate.column name="CKEY" index="IDX_BPEL_CORRELATOR_MESSAGE_CKEY"
+     */
+    public String getCanonical() {
+        return _keyCanonical;
+    }
+
+    /** @see #getCanonical() */
+    public void setCanonical(String canonical) {
+        _keyCanonical = canonical;
+    }
+
+    /**
+     * The message with which this correlation key value is associated.
+     * 
+     * @hibernate.many-to-one column="CORRELATOR_MESSAGE_ID" foreign-key="none"
+     */
+    public HCorrelatorMessage getOwner() {
+        return _owner;
+    }
+
+    public void setOwner(HCorrelatorMessage owner) {
+        _owner = owner;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorSelector.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorSelector.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorSelector.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HCorrelatorSelector.java Sun May  2 17:02:51 2010
@@ -0,0 +1,118 @@
+/*
+ * 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.hib.bpel.hobj;
+
+/**
+ * @hibernate.class table="BPEL_SELECTORS" lazy="true"
+ * @hibernate.query name="SELECT_MESSAGE_ROUTE_IDS_BY_PROCESS" query="select id from HCorrelatorSelector as m where m.correlator in(select c from HCorrelator c where c.process = :process)"
+ * @hibernate.query name="SELECT_MESSAGE_ROUTE_IDS_BY_INSTANCES" query="select id from HCorrelatorSelector as m where m.instance in (:instances))"
+ */
+public class HCorrelatorSelector extends HObject {
+    public static final String SELECT_MESSAGE_ROUTE_IDS_BY_PROCESS = "SELECT_MESSAGE_ROUTE_IDS_BY_PROCESS";
+    public static final String SELECT_MESSAGE_ROUTE_IDS_BY_INSTANCES = "SELECT_MESSAGE_ROUTE_IDS_BY_INSTANCES";
+
+    private HProcessInstance _instance;
+    private String _groupId;
+    private int _idx;
+    private HCorrelator _correlator;
+    private String _correlationKey;
+    private String _processType;
+    
+    /**
+     * @hibernate.many-to-one column="PIID" not-null="true" foreign-key="none"
+     */
+    public HProcessInstance getInstance() {
+        return _instance;
+    }
+
+    public void setInstance(HProcessInstance instance) {
+        _instance = instance;
+    }
+
+    /** after c
+     * @hibernate.property column="SELGRPID"
+     * @hibernate.column name="SELGRPID" index="IDX_SELECTOR_SELGRPID" not-null="true"
+     */
+    public String getGroupId() {
+        return _groupId;
+    }
+
+    public void setGroupId(String groupId) {
+        _groupId = groupId;
+    }
+
+    /**
+     * @hibernate.property column="IDX" not-null="true"
+     */
+    public int getIndex() {
+        return _idx;
+    }
+
+    public void setIndex(int idx) {
+        _idx = idx;
+    }
+    
+    
+    @Override
+    public String toString() {
+        return "{HCorrelatorSelector correlator=" + this.getCorrelator() + ", ckey=" + getCorrelationKey() + 
+        ", groupId=" + getGroupId() + ", idx=" + getIndex() + ", iid=" + getInstance().getId() + "}";
+    }
+
+    /**
+     * @hibernate.property column="CORRELATION_KEY" not-null="true"
+     * @hibernate.column name="CORRELATION_KEY"
+     *                   index="IDX_SELECTOR_CKEY"
+     *                   not-null="true"
+     *                   unique-key="UNIQ_SELECTOR"
+     *                   
+     */
+    public String getCorrelationKey() {
+        return _correlationKey;
+    }
+
+    public void setCorrelationKey(String correlationKey) {
+        _correlationKey = correlationKey;
+    }
+
+    /**
+     * @hibernate.property column="PROC_TYPE" not-null="true"
+     */
+    public String getProcessType() {
+        return _processType;
+    }
+
+    public void setProcessType(String _processType) {
+        this._processType = _processType;
+    }
+
+    /**
+     * @hibernate.many-to-one not-null="true" foreign-key="none"
+     * @hibernate.column name="CORRELATOR" not-null="true" 
+     *          index="IDX_SELECTOR_CORRELATOR" unique-key="UNIQ_SELECTOR"
+     */
+    public HCorrelator getCorrelator() {
+        return _correlator;
+    }
+
+    public void setCorrelator(HCorrelator correlator) {
+        _correlator = correlator;
+    }
+
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HFaultData.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HFaultData.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HFaultData.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HFaultData.java Sun May  2 17:02:51 2010
@@ -0,0 +1,94 @@
+/*
+ * 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.hib.bpel.hobj;
+
+/**
+ * Persistent representation of a fault.
+ * 
+ * @hibernate.class table="BPEL_FAULT"
+ * @hibernate.query name="SELECT_FAULT_IDS_BY_INSTANCES" query="select id from HFaultData as f where f in (select i.fault from HProcessInstance as i where i in (:instances))"
+ */
+public class HFaultData extends HObject {
+    public final static String SELECT_FAULT_IDS_BY_INSTANCES = "SELECT_FAULT_IDS_BY_INSTANCES";
+
+    private String _name;
+    private String _explanation;
+    private HLargeData _data;
+    private int _lineNo;
+    private int _activityId;
+
+    /**
+     * @hibernate.property column="FAULTNAME"
+     */
+    public String getName() {
+        return _name;
+    }
+
+    public void setName(String name) {
+        _name = name;
+    }
+
+    /**
+     * @hibernate.many-to-one column="LDATA_ID" cascade="delete" foreign-key="none"
+     */
+    public HLargeData getData() {
+        return _data;
+    }
+
+    public void setData(HLargeData data) {
+        _data = data;
+    }
+
+    /**
+     * @hibernate.property column="EXPLANATION" length="4000"
+     */
+    public String getExplanation() {
+        return _explanation;
+    }
+
+    public void setExplanation(String explanation) {
+        // Don't want to make this a blob, truncating to avoid errors
+        if (explanation != null && explanation.length() > 4000)
+            explanation = explanation.substring(0, 3999);
+        _explanation = explanation;
+    }
+
+    /**
+     * @hibernate.property column="LINE_NUM"
+     */
+    public int getLineNo() {
+        return _lineNo;
+    }
+
+    public void setLineNo(int lineNo) {
+        _lineNo = lineNo;
+    }
+
+    /**
+     * @hibernate.property column="AID"
+     */
+    public int getActivityId() {
+        return _activityId;
+    }
+
+    public void setActivityId(int activityId) {
+        _activityId = activityId;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HLargeData.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HLargeData.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HLargeData.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HLargeData.java Sun May  2 17:02:51 2010
@@ -0,0 +1,109 @@
+/*
+ * 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.hib.bpel.hobj;
+
+/**
+ * Used to store large data sets into a single table. When an HObject instance
+ * needs to store as part of its state large binary or text data, a reference to
+ * an instance of this class must be created.
+ * 
+ * @hibernate.class table="LARGE_DATA"
+ * @hibernate.query name="SELECT_ACTIVITY_RECOVERY_LDATA_IDS_BY_INSTANCES" query="select a.details.id from HActivityRecovery as a where a.instance in (:instances) and a.details is not null"
+ * @hibernate.query name="SELECT_JACOB_LDATA_IDS_BY_INSTANCES" query="select i.jacobState.id from HProcessInstance as i where i in (:instances) and i.jacobState is not null"
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_1" query="select mex.request.messageData.id from HMessageExchange mex where mex.instance in (:instances) and mex.request.messageData is not null"
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_2" query="select mex.response.messageData.id from HMessageExchange mex where mex.instance in (:instances) and mex.response.messageData is not null"
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_3" query="select mex.request.header.id from HMessageExchange mex where mex.instance in (:instances) and mex.request.header is not null"
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_4" query="select mex.response.header.id from HMessageExchange mex where mex.instance in (:instances) and mex.response.header is not null"
+ * @hibernate.query name="SELECT_MEX_LDATA_IDS_BY_INSTANCES_1" query="select e.endpoint.id from HMessageExchange as e where e.instance in (:instances) and e.endpoint is not null"
+ * @hibernate.query name="SELECT_MEX_LDATA_IDS_BY_INSTANCES_2" query="select e.callbackEndpoint.id from HMessageExchange as e where e.instance in (:instances) and e.callbackEndpoint is not null"
+ *
+ * @hibernate.query name="SELECT_EVENT_LDATA_IDS_BY_INSTANCES" query="select e.data.id from HBpelEvent as e where e.instance in (:instances) and e.data is not null"
+ * @hibernate.query name="SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_1" query="select mex.request.messageData.id from HMessageExchange mex, HCorrelatorMessage cm where mex = cm.messageExchange and mex.instance in (:instances) and mex.request.messageData is not null"
+ * @hibernate.query name="SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_2" query="select mex.response.messageData.id from HMessageExchange mex, HCorrelatorMessage cm where mex = cm.messageExchange and mex.instance in (:instances) and mex.response.messageData is not null"
+ * @hibernate.query name="SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_3" query="select mex.request.header.id from HMessageExchange mex, HCorrelatorMessage cm where mex = cm.messageExchange and mex.instance in (:instances) and mex.request.header is not null"
+ * @hibernate.query name="SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_4" query="select mex.response.header.id from HMessageExchange mex, HCorrelatorMessage cm where mex = cm.messageExchange and mex.instance in (:instances) and mex.response.header is not null"
+ * @hibernate.query name="SELECT_XMLDATA_LDATA_IDS_BY_INSTANCES" query="select x.data.id from HXmlData as x where x.instance in (:instances) and x.data is not null"
+ * @hibernate.query name="SELECT_PARTNER_LINK_LDATA_IDS_BY_INSTANCES_1" query="select l.myEPR.id from HPartnerLink as l where l.scope.instance in (:instances) and l.myEPR is not null"
+ * @hibernate.query name="SELECT_PARTNER_LINK_LDATA_IDS_BY_INSTANCES_2" query="select l.partnerEPR.id from HPartnerLink as l where l.scope.instance in (:instances) and l.partnerEPR is not null"
+ * @hibernate.query name="SELECT_FAULT_LDATA_IDS_BY_INSTANCE_IDS" query="select f.data.id from HFaultData as f, HProcessInstance as i where f.id = i.fault and i.id in (:instanceIds) and f.data is not null"
+
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_MEX_1" query="select mex.request.messageData.id from HMessageExchange mex where mex = :mex and mex.request.messageData is not null"
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_MEX_2" query="select mex.response.messageData.id from HMessageExchange mex where mex = :mex and mex.response.messageData is not null"
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_MEX_3" query="select mex.request.header.id from HMessageExchange mex where mex = :mex and mex.request.header is not null"
+ * @hibernate.query name="SELECT_MESSAGE_LDATA_IDS_BY_MEX_4" query="select mex.response.header.id from HMessageExchange mex where mex = :mex and mex.response.header is not null"
+ */
+public class HLargeData extends HObject {
+    public final static String SELECT_ACTIVITY_RECOVERY_LDATA_IDS_BY_INSTANCES = "SELECT_ACTIVITY_RECOVERY_LDATA_IDS_BY_INSTANCES";
+    public final static String SELECT_JACOB_LDATA_IDS_BY_INSTANCES = "SELECT_JACOB_LDATA_IDS_BY_INSTANCES";
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_1 = "SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_1";
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_2 = "SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_2";
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_3 = "SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_3";
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_4 = "SELECT_MESSAGE_LDATA_IDS_BY_INSTANCES_4";
+    public final static String SELECT_MEX_LDATA_IDS_BY_INSTANCES_1 = "SELECT_MEX_LDATA_IDS_BY_INSTANCES_1";
+    public final static String SELECT_MEX_LDATA_IDS_BY_INSTANCES_2 = "SELECT_MEX_LDATA_IDS_BY_INSTANCES_2";
+
+    public final static String SELECT_EVENT_LDATA_IDS_BY_INSTANCES = "SELECT_EVENT_LDATA_IDS_BY_INSTANCES";
+    public final static String SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_1 = "SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_1";
+    public final static String SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_2 = "SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_2";
+    public final static String SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_3 = "SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_3";
+    public final static String SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_4 = "SELECT_UNMATCHED_MESSAGE_LDATA_IDS_BY_INSTANCES_4";
+    public final static String SELECT_XMLDATA_LDATA_IDS_BY_INSTANCES = "SELECT_XMLDATA_LDATA_IDS_BY_INSTANCES";
+    public final static String SELECT_PARTNER_LINK_LDATA_IDS_BY_INSTANCES_1 = "SELECT_PARTNER_LINK_LDATA_IDS_BY_INSTANCES_1";
+    public final static String SELECT_PARTNER_LINK_LDATA_IDS_BY_INSTANCES_2 = "SELECT_PARTNER_LINK_LDATA_IDS_BY_INSTANCES_2";
+    public final static String SELECT_FAULT_LDATA_IDS_BY_INSTANCE_IDS = "SELECT_FAULT_LDATA_IDS_BY_INSTANCE_IDS";
+    
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_MEX_1 = "SELECT_MESSAGE_LDATA_IDS_BY_MEX_1";
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_MEX_2 = "SELECT_MESSAGE_LDATA_IDS_BY_MEX_2";
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_MEX_3 = "SELECT_MESSAGE_LDATA_IDS_BY_MEX_3";
+    public final static String SELECT_MESSAGE_LDATA_IDS_BY_MEX_4 = "SELECT_MESSAGE_LDATA_IDS_BY_MEX_4";
+	
+    private byte[] binary = null;
+
+    public HLargeData() {
+        super();
+    }
+
+    public HLargeData(byte[] binary) {
+        super();
+        this.binary = binary;
+    }
+
+    public HLargeData(String text) {
+        super();
+        this.binary = text.getBytes();
+    }
+
+    /**
+     * @hibernate.property type="binary" length="2G"
+     * 
+     * @hibernate.column name="BIN_DATA" sql-type="blob(2G)"
+     */
+    public byte[] getBinary() {
+        return binary;
+    }
+
+    public void setBinary(byte[] binary) {
+        this.binary = binary;
+    }
+
+    public String getText() {
+        return new String(binary);
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessage.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessage.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessage.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessage.java Sun May  2 17:02:51 2010
@@ -0,0 +1,67 @@
+/*
+ * 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.hib.bpel.hobj;
+
+
+/**
+ * Hibernate-managed table for keeping track of messages.
+ *
+ * @hibernate.class table="BPEL_MESSAGE"
+ * @hibernate.query name="SELECT_MESSAGE_IDS_BY_MEX_1" query="select mex.request.id from HMessageExchange mex WHERE mex = :messageExchange and mex.request is not null"
+ * @hibernate.query name="SELECT_MESSAGE_IDS_BY_MEX_2" query="select mex.response.id from HMessageExchange mex WHERE mex = :messageExchange and mex.response is not null"
+ * @hibernate.query name="SELECT_MESSAGE_IDS_BY_INSTANCES_1" query="select mex.request.id from HMessageExchange mex WHERE mex.instance in (:instances) and mex.request.id is not null"
+ * @hibernate.query name="SELECT_MESSAGE_IDS_BY_INSTANCES_2" query="select mex.response.id from HMessageExchange mex WHERE mex.instance in (:instances) and mex.response.id is not null"
+ */
+public class HMessage extends HObject {
+    public final static String SELECT_MESSAGE_IDS_BY_MEX_1 = "SELECT_MESSAGE_IDS_BY_MEX_1";
+    public final static String SELECT_MESSAGE_IDS_BY_MEX_2 = "SELECT_MESSAGE_IDS_BY_MEX_2";
+    public final static String SELECT_MESSAGE_IDS_BY_INSTANCES_1 = "SELECT_MESSAGE_IDS_BY_INSTANCES_1";
+    public final static String SELECT_MESSAGE_IDS_BY_INSTANCES_2 = "SELECT_MESSAGE_IDS_BY_INSTANCES_2";
+
+    private String _type;
+    private HLargeData _data;
+    private HLargeData _header;
+
+    public void setType(String type) {
+        _type = type;
+    }
+
+    /** @hibernate.property column="TYPE" */
+    public String getType() {
+        return _type;
+    }
+
+    /** @hibernate.many-to-one column="DATA" lazy="false" outer-join="true" foreign-key="none" */
+    public HLargeData getMessageData() {
+        return _data;
+    }
+
+    public void setMessageData(HLargeData data) {
+        _data = data;
+    }
+
+    /** @hibernate.many-to-one column="HEADER" foreign-key="none" */
+    public HLargeData getHeader() {
+        return _header;
+    }
+
+    public void setHeader(HLargeData header) {
+        _header = header;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchange.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchange.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchange.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchange.java Sun May  2 17:02:51 2010
@@ -0,0 +1,452 @@
+/*
+ * 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.hib.bpel.hobj;
+
+import java.util.Date;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Hibernate-managed table for keeping track of message exchanges.
+ * 
+ * @hibernate.class table="BPEL_MESSAGE_EXCHANGE" dynamic-update="true"
+ * @hibernate.query name="SELECT_MEX_IDS_BY_INSTANCES" query="select id from HMessageExchange as m where m.instance in (:instances)"
+ * @hibernate.query name="SELECT_UNMATCHED_MEX_BY_INSTANCES" query="from HMessageExchange as m where m in(select cm.messageExchange from HCorrelatorMessage as cm where cm.messageExchange.instance in (:instances))"
+ */
+public class HMessageExchange extends HObject {
+    public final static String SELECT_MEX_IDS_BY_INSTANCES = "SELECT_MEX_IDS_BY_INSTANCES";
+    public final static String SELECT_UNMATCHED_MEX_BY_INSTANCES = "SELECT_UNMATCHED_MEX_BY_INSTANCES";
+
+    private String _channelName;
+
+    private String _operationName;
+
+    private String _state;
+
+    private Date _insertTime;
+
+    private String _portType;
+
+    private HLargeData _endpoint;
+
+    private HLargeData _callbackEndpoint;
+
+    private HMessage _request;
+
+    private HMessage _response;
+
+    private HPartnerLink _partnerLink;
+
+    private String _resource;
+
+    private String _clientKey;
+
+    private HProcessInstance _instance;
+
+    private HProcess _process;
+
+    private char _dir;
+
+    private int _plinkModelId;
+
+    private String _pattern;
+
+    private String _corrstatus;
+
+    private String _faultType;
+
+    private String _faultExplanation;
+
+    private String _callee;
+
+    private String _p2pPeer;
+
+    private Map<String, String> _properties = new HashMap<String, String>();
+
+    private long _timeout;
+
+    private String _istyle;
+
+    private String _failureType;
+
+    private String _mexId;
+
+    private String _ackType;
+
+    private String _pipedPid;
+
+    private boolean _instantiatingResource;
+
+    /**
+     * 
+     */
+    public HMessageExchange() {
+        super();
+    }
+
+    /**
+     * 
+     * @hibernate.property
+     * @hibernate.column name="MEXID" not-null="true" unique="true"
+     */
+
+    public String getMexId() {
+        return _mexId;
+    }
+
+    public void setMexId(String mexId) {
+        _mexId = mexId;
+    }
+
+    /**
+     * @hibernate.property column="PORT_TYPE"
+     */
+    public String getPortType() {
+        return _portType;
+    }
+
+    public void setPortType(String portType) {
+        _portType = portType;
+    }
+
+    /**
+     * @hibernate.property column="CHANNEL_NAME"
+     */
+    public String getChannelName() {
+        return _channelName;
+    }
+
+    public void setChannelName(String channelName) {
+        _channelName = channelName;
+    }
+
+    /**
+     * @hibernate.property column="CLIENTKEY"
+     */
+    public String getClientKey() {
+        return _clientKey;
+    }
+
+    public void setClientKey(String clientKey) {
+        _clientKey = clientKey;
+    }
+
+    /**
+     * @hibernate.many-to-one column="LDATA_EPR_ID" cascade="delete" foreign-key="none"
+     */
+    public HLargeData getEndpoint() {
+        return _endpoint;
+    }
+
+    public void setEndpoint(HLargeData endpoint) {
+        _endpoint = endpoint;
+    }
+
+    /**
+     * @hibernate.many-to-one column="LDATA_CEPR_ID" cascade="delete" foreign-key="none"
+     */
+    public HLargeData getCallbackEndpoint() {
+        return _callbackEndpoint;
+    }
+
+    public void setCallbackEndpoint(HLargeData endpoint) {
+        _callbackEndpoint = endpoint;
+    }
+
+    /**
+     * @hibernate.many-to-one column="REQUEST" cascade="delete" foreign-key="none"
+     */
+    public HMessage getRequest() {
+        return _request;
+    }
+
+    public void setRequest(HMessage request) {
+        _request = request;
+    }
+
+    /**
+     * @hibernate.many-to-one column="RESPONSE" cascade="delete" foreign-key="none"
+     */
+    public HMessage getResponse() {
+        return _response;
+    }
+
+    public void setResponse(HMessage response) {
+        _response = response;
+    }
+
+    /**
+     * @hibernate.property column="INSERT_DT"
+     */
+    public Date getInsertTime() {
+        return _insertTime;
+    }
+
+    public void setInsertTime(Date insertTime) {
+        _insertTime = insertTime;
+    }
+
+    /**
+     * @hibernate.property column="OPERATION"
+     */
+    public String getOperationName() {
+        return _operationName;
+    }
+
+    public void setOperationName(String operationName) {
+        _operationName = operationName;
+    }
+
+    /**
+     * @hibernate.property column="STATE"
+     */
+    public String getState() {
+        return _state;
+    }
+
+    public void setState(String state) {
+        _state = state;
+    }
+
+    /**
+     * @hibernate.many-to-one column="PROCESS" foreign-key="none"
+     */
+    public HProcess getProcess() {
+        return _process;
+    }
+
+    public void setProcess(HProcess process) {
+        _process = process;
+    }
+
+    /**
+     * @hibernate.many-to-one column="PIID" foreign-key="none"
+     */
+    public HProcessInstance getInstance() {
+        return _instance;
+    }
+
+    public void setInstance(HProcessInstance instance) {
+        _instance = instance;
+    }
+
+    public void setDirection(char dir) {
+        _dir = dir;
+    }
+
+    /**
+     * @hibernate.property column="DIR"
+     */
+    public char getDirection() {
+        return _dir;
+    }
+
+    /**
+     * @hibernate.property column="PLINK_MODELID"
+     */
+    public int getPartnerLinkModelId() {
+        return _plinkModelId;
+    }
+
+    public void setPartnerLinkModelId(int id) {
+        _plinkModelId = id;
+    }
+
+    /**
+     * @hibernate.property column="PATTERN"
+     */
+    public String getPattern() {
+        return _pattern;
+    }
+
+    public void setPattern(String pattern) {
+        _pattern = pattern;
+
+    }
+
+    /**
+     * @hibernate.property column="CORR_STATUS"
+     * @return
+     */
+    public String getCorrelationStatus() {
+        return _corrstatus;
+    }
+
+    public void setCorrelationStatus(String cstatus) {
+        _corrstatus = cstatus;
+
+    }
+
+    /**
+     * @hibernate.property column="FAULT_TYPE"
+     * @return
+     */
+    public String getFault() {
+        return _faultType;
+    }
+
+    public void setFault(String faultType) {
+        _faultType = faultType;
+
+    }
+
+    /**
+     * @hibernate.property column="FAULT_EXPL"
+     * @return
+     */
+    public String getFaultExplanation() {
+        return _faultExplanation;
+    }
+
+    public void setFaultExplanation(String faultExplanation) {
+        if (faultExplanation != null && faultExplanation.length() > 255)
+            faultExplanation = faultExplanation.substring(0, 254);
+        _faultExplanation = faultExplanation;
+    }
+
+    /**
+     * @hibernate.property column="CALLEE"
+     */
+    public String getCallee() {
+        return _callee;
+    }
+
+    public void setCallee(String callee) {
+        _callee = callee;
+    }
+
+    /**
+     * @hibernate.map name="properties" table="BPEL_MEX_PROPS" lazy="true" cascade="delete"
+     * @hibernate.collection-key name="mex" column="MEX" foreign-key="none"
+     * @hibernate.collection-index column="NAME" type="string"
+     * @hibernate.collection-element column="VALUE" type="string" length="8000"
+     */
+    public Map<String, String> getProperties() {
+        return _properties;
+    }
+
+    public void setProperties(Map<String, String> props) {
+        _properties = props;
+    }
+
+    public void setPartnerLink(HPartnerLink link) {
+        _partnerLink = link;
+    }
+
+    /**
+     * @hibernate.many-to-one column="PARTNERLINK" foreign-key="none"
+     */
+    public HPartnerLink getPartnerLink() {
+        return _partnerLink;
+    }
+
+    /**
+     * @hibernate.property column="TIMEOUT"
+     * 
+     */
+    public long getTimeout() {
+        return _timeout;
+    }
+
+    public void setTimeout(long timeout) {
+        _timeout = timeout;
+    }
+
+    /**
+     * @hibernate.property column="ISTYLE"
+     */
+    public String getInvocationStyle() {
+        return _istyle;
+    }
+
+    /**
+     * @hibernate.property column="P2P_PEER"
+     * @return
+     */
+    public String getPipedMessageExchange() {
+        return _p2pPeer;
+    }
+
+    public void setPipedMessageExchange(String p2ppeer) {
+        _p2pPeer = p2ppeer;
+    }
+
+    public void setFailureType(String failureType) {
+        _failureType = failureType;
+    }
+
+    /**
+     * @hibernate.property column="FAILURE_TYPE"
+     * @return
+     */
+    public String getFailureType() {
+        return _failureType;
+    }
+
+    public void setInvocationStyle(String invocationStyle) {
+        _istyle = invocationStyle;
+    }
+
+    /**
+     * @hibernate.property column="ACK_TYPE"
+     * @return
+     */
+    public String getAckType() {
+        return _ackType;
+    }
+
+    public void setAckType(String ackType) {
+        _ackType = ackType;
+    }
+
+    /**
+     * @hibernate.property column="PIPED_PID"
+     * @return
+     */
+    public String getPipedPID() {
+        return _pipedPid;
+    }
+
+    public void setPipedPID(String ppid) {
+        _pipedPid = ppid;
+    }
+
+    /**
+     * @hibernate.property column="RESOURCE" length="255"
+     */
+    public String getResource() {
+        return _resource;
+    }
+
+    public void setResource(String resource) {
+        this._resource = resource;
+    }
+
+    /**
+     * @hibernate.property column="INST_RES"
+     */
+    public boolean isInstantiatingResource() {
+        return _instantiatingResource;
+    }
+
+    public void setInstantiatingResource(boolean inst) {
+        _instantiatingResource = inst;
+    }
+
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchangeProperty.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchangeProperty.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchangeProperty.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HMessageExchangeProperty.java Sun May  2 17:02:51 2010
@@ -0,0 +1,96 @@
+/*
+ * 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.hib.bpel.hobj;
+
+import java.io.Serializable;
+
+/**
+ * This hibernate entity enables using the BPEL_MEX_PROPS table in HQL. This entity
+ * is excluded from schema export.
+ * 
+ * @hibernate.class table="BPEL_MEX_PROPS" lazy="true"
+ * @hibernate.query name="SELECT_MEX_PROPS_IDS_BY_INSTANCES" query="select p.id from HMessageExchangeProperty p, HMessageExchange e where p.mex = e and e.instance in (:instances)"
+ */
+@SuppressWarnings("serial")
+public class HMessageExchangeProperty implements Serializable {
+    public final static String SELECT_MEX_PROPS_IDS_BY_INSTANCES = "SELECT_MEX_PROPS_IDS_BY_INSTANCES";
+
+	private HMessageExchange _mex;
+	private String _name;
+	private String _value;
+
+	public HMessageExchangeProperty() {
+	}
+
+	/**
+	 * @hibernate.id
+	 * @return
+	 */
+	public HMessageExchangeProperty getKey() {
+		return null;
+	}
+
+	public void setKey(HMessageExchangeProperty property) {
+	}
+	
+    /**
+     * @hibernate.many-to-one column="MEX" insert="false" update="false"
+     */
+	public HMessageExchange getMex() {
+		return _mex;
+	}
+
+	public void setMex(HMessageExchange mex) {
+		_mex = mex;
+	}
+
+	/**
+	 * @hibernate.property column="NAME" type="string" length="8000" insert="false" update="false"
+	 */
+	public String getName() {
+		return _name;
+	}
+	
+	public void setName(String name) {
+		_name = name;
+	}
+
+	/**
+	 * @hibernate.property column="VALUE" type="string"  insert="false" update="false"
+	 */
+	public String getValue() {
+		return _value;
+	}
+
+	public void setValue(String value) {
+		_value = value;
+	}
+
+    public boolean equals(Object another) {
+        // fake implementation to suppress hibernate warning on key not hash-searchable; 
+        // actually HMessageExchangePropery is never retrieved by the id 
+        return super.equals(another);
+    }
+    
+    public int hashCode() {
+        // fake implementation to suppress hibernate warning on key not hash-searchable
+        // actually HMessageExchangePropery is never retrieved by the id 
+        return _mex.hashCode() * 29 + _name.hashCode() * 13;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HObject.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HObject.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HObject.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HObject.java Sun May  2 17:02:51 2010
@@ -0,0 +1,104 @@
+/*
+ * 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.hib.bpel.hobj;
+
+import java.util.Collection;
+import java.util.Date;
+
+/**
+ * Base class for Hibernate objects providing auto-generated key, create
+ * timestamp and lock fields.
+ */
+public class HObject {
+
+    private Long _id;
+
+    private Date _created;
+
+    private int _lock;
+
+    /** Constructor. */
+    public HObject() {
+        super();
+        setLock(0);
+    }
+
+    /**
+     * Auto-gnerated creation timestamp.
+     * 
+     * @hibernate.property column="INSERT_TIME" type="timestamp"
+     */
+    public Date getCreated() {
+        return _created;
+    }
+
+    public void setCreated(Date created) {
+        _created = created;
+    }
+
+    /**
+     * Auto-generated primary key.
+     * 
+     * @hibernate.id generator-class="native" column="ID"
+     */
+    public Long getId() {
+        return _id;
+    }
+
+    public void setId(Long id) {
+        _id = id;
+    }
+
+    /**
+     * @hibernate.property column="MLOCK" not-null="true"
+     */
+    public int getLock() {
+        return _lock;
+    }
+
+    public void setLock(int lock) {
+        _lock = lock;
+    }
+
+    public static <T extends HObject> Object[] toIdArray(T[] objects) {
+        Object[] ids = new Object[objects.length];
+
+        int index = 0;
+        for( HObject object : objects ) {
+            ids[index++] = object.getId();
+        }
+
+        return ids;
+    }
+
+    public static Object[] toIdArray(Collection<? extends HObject> objects) {
+        Object[] ids = new Object[objects.size()];
+
+        int index = 0;
+        for( HObject object : objects ) {
+            ids[index++] = object.getId();
+        }
+
+        return ids;
+    }
+
+    public String toString() {
+        return this.getClass()+"{id="+_id+"}";
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HPartnerLink.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HPartnerLink.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HPartnerLink.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HPartnerLink.java Sun May  2 17:02:51 2010
@@ -0,0 +1,223 @@
+/*
+ * 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.hib.bpel.hobj;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * The HEndpointReference can either be attached to a scope (when it's specific
+ * to a scope instance, for example because it has been assigned during the
+ * instance execution) or to a process definition (general endpoint
+ * configuration).
+ * 
+ * @hibernate.class table="BPEL_PLINK_VAL"
+ * @hibernate.query name="SELECT_PARTNER_LINK_IDS_BY_INSTANCES" query="select l.id from HPartnerLink l, HScope s where l.scope = s and s.instance in (:instances)"
+ */
+public class HPartnerLink extends HObject {
+    public final static String SELECT_PARTNER_LINK_IDS_BY_INSTANCES = "SELECT_PARTNER_LINK_IDS_BY_INSTANCES";
+
+    private String _linkName;
+
+    private String _partnerRole;
+
+    private String _myrole;
+
+    private String _svcName;
+
+    private HLargeData _myEPR;
+
+    private HLargeData _partnerEPR;
+
+    private HScope _scope;
+
+    private HProcess _process;
+
+    private int _modelId;
+
+    private String _mySessionId;
+
+    private String _partnerSessionId;
+
+    private Set<HMessageExchange> _mex;
+
+    private Set<HContextValue> _contextValues = new HashSet<HContextValue>();
+
+    public HPartnerLink() {
+        super();
+    }
+
+    /**
+     * @hibernate.property column="PARTNER_LINK" length="100" not-null="true"
+     */
+    public String getLinkName() {
+        return _linkName;
+    }
+
+    public void setLinkName(String linkName) {
+        _linkName = linkName;
+    }
+
+    /**
+     * @hibernate.property column="PARTNERROLE" length="100"
+     */
+    public String getPartnerRole() {
+        return _partnerRole;
+    }
+
+    public void setPartnerRole(String partnerRoleName) {
+        _partnerRole = partnerRoleName;
+    }
+
+    /**
+     * @hibernate.many-to-one column="MYROLE_EPR" cascade="delete" foreign-key="none"
+     */
+    public HLargeData getMyEPR() {
+        return _myEPR;
+    }
+
+    public void setMyEPR(HLargeData data) {
+        _myEPR = data;
+    }
+
+    /**
+     * @hibernate.many-to-one column="PARTNERROLE_EPR" cascade="delete" foreign-key="none"
+     */
+    public HLargeData getPartnerEPR() {
+        return _partnerEPR;
+    }
+
+    public void setPartnerEPR(HLargeData data) {
+        _partnerEPR = data;
+    }
+
+    /**
+     * @hibernate.many-to-one column="PROCESS" foreign-key="none"
+     */
+    public HProcess getProcess() {
+        return _process;
+    }
+
+    public void setProcess(HProcess process) {
+        _process = process;
+    }
+
+    /**
+     * @hibernate.many-to-one column="SCOPE" foreign-key="none"
+     */
+    public HScope getScope() {
+        return _scope;
+    }
+
+    public void setScope(HScope scope) {
+        _scope = scope;
+    }
+
+    public void setServiceName(String svcName) {
+        _svcName = svcName;
+    }
+
+    /**
+     * @hibernate.property column="SVCNAME"
+     */
+    public String getServiceName() {
+        return _svcName;
+    }
+
+    /**
+     * @hibernate.property column="MYROLE" length="100"
+     * @return
+     */
+    public String getMyRole() {
+        return _myrole;
+    }
+
+    public void setMyRole(String myrole) {
+        _myrole = myrole;
+    }
+
+    /**
+     * @hibernate.property column="MODELID"
+     */
+    public int getModelId() {
+        return _modelId;
+    }
+
+    public void setModelId(int modelId) {
+        _modelId = modelId;
+    }
+
+    /**
+     * @hibernate.property column="MYSESSIONID"
+     */
+    public String getMySessionId() {
+        return _mySessionId;
+    }
+
+    /**
+     * @hibernate.property column="PARTNERSESSIONID"
+     */
+    public String getPartnerSessionId() {
+        return _partnerSessionId;
+    }
+
+    public void setPartnerSessionId(String session) {
+        _partnerSessionId = session;
+    }
+
+    public void setMySessionId(String sessionId) {
+        _mySessionId = sessionId;
+    }
+
+    /**
+     * @hibernate.set
+     *    lazy="true"
+     *    inverse="true"
+     *    cascade="delete"
+     * @hibernate.collection-key
+     *    column="PARTNERLINK" foreign-key="none"
+     * @hibernate.collection-one-to-many
+     *    class="org.apache.ode.dao.hib.bpel.hobj.HMessageExchange"
+     */
+    public Set<HMessageExchange> getMessageExchanges() {
+      return _mex;
+    }
+
+    public void setMessageExchanges(Set<HMessageExchange> mex) {
+      _mex = mex;
+    }
+
+    /**
+     * Get the context value objects for partner links.
+     * 
+     * @return {@link Set}&lt;{@link HContextValue}&gt; with context values
+     * @hibernate.set lazy="true" inverse="true" cascade="delete"
+     * @hibernate.collection-key column="PARTNERLINK" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HContextValue"
+     */
+    public Set<HContextValue> getContextValues() {
+        return _contextValues;
+    }
+
+    public void setContextValues(Set<HContextValue> contextValues) {
+        _contextValues = contextValues;
+    }
+
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcess.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcess.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcess.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcess.java Sun May  2 17:02:51 2010
@@ -0,0 +1,269 @@
+/*
+ * 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.hib.bpel.hobj;
+
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Hibernate table representing a BPEL process (<em>not</em> a process instance).
+ * @hibernate.class table="BPEL_PROCESS" lazy="false"
+ *
+ */
+public class HProcess extends HObject{
+
+    /** {@link HCorrelator}s for this process. */
+    private Set<HCorrelator> _correlators = new HashSet<HCorrelator>();
+
+    /** Instances of this BPEL process. */
+    private Collection<HProcessInstance> _instances = new HashSet<HProcessInstance>();
+
+    /** Events belonging to this BPEL process. */
+    private Collection<HBpelEvent> _events = new HashSet<HBpelEvent>();
+
+    /** Partnerlinks defined on this process */
+    private Set<HPartnerLink> _plinks = new HashSet<HPartnerLink>();
+
+    /** Message exchanges associated with this process. */
+    private Set<HMessageExchange> _messageExchanges = new HashSet<HMessageExchange>();
+
+    /** Simple name of the process. */
+    private String _processId;
+
+    /** User that deployed the process. */
+    private String _deployer;
+
+    /** Date of last deployment. */
+    private Date _deployDate;
+
+    /** Process name. */
+    private String _typeName;
+
+    /** Process namespace. */
+    private String _typeNamespace;
+
+    /** Process version. */
+    private long _version;
+
+    /** Whether process is retired */
+    private boolean _retired;
+
+    private boolean _active;
+
+    private String _guid;
+
+    /**
+     * @hibernate.set
+     *  lazy="true"
+     *  inverse="true"
+     * @hibernate.collection-key
+     *  column="PROCESS" foreign-key="none"
+     * @hibernate.collection-one-to-many
+     *   class="org.apache.ode.dao.hib.bpel.hobj.HMessageExchange"
+     */
+    public Set<HMessageExchange> getMessageExchanges() {
+        return _messageExchanges;
+    }
+
+    public void setMessageExchanges(Set<HMessageExchange> exchanges) {
+        _messageExchanges = exchanges;
+    }
+
+    /**
+     * @hibernate.set
+     *  lazy="true"
+     *  inverse="true"
+     *  cascade="delete"
+     * @hibernate.collection-key
+     *  column="PROCESS_ID" foreign-key="none"
+     * @hibernate.collection-one-to-many
+     *   class="org.apache.ode.dao.hib.bpel.hobj.HCorrelator"
+     */
+    public Set<HCorrelator> getCorrelators() {
+        return _correlators;
+    }
+
+    public void setCorrelators(Set<HCorrelator> correlators) {
+        _correlators = correlators;
+    }
+
+    /**
+     * @hibernate.bag
+     *  lazy="true"
+     *  inverse="true"
+     * @hibernate.collection-key
+     *  column="PROCESS_ID" foreign-key="none"
+     * @hibernate.collection-one-to-many
+     *  class="org.apache.ode.dao.hib.bpel.hobj.HProcessInstance"
+     */
+    public Collection<HProcessInstance> getInstances() {
+        return _instances;
+    }
+
+    public void setInstances(Collection<HProcessInstance> instances) {
+        _instances = instances;
+    }
+
+    /**
+     * @hibernate.bag
+     *  lazy="true"
+     *  inverse="true"
+     * @hibernate.collection-key
+     *  column="PID" foreign-key="none"
+     * @hibernate.collection-one-to-many
+     *  class="org.apache.ode.dao.hib.bpel.hobj.HBpelEvent"
+     */
+    public Collection<HBpelEvent> getEvents() {
+        return _events;
+    }
+
+    public void setEvents(Collection<HBpelEvent> events) {
+        _events = events;
+    }
+
+    /**
+     * Get the partner links values as deployed.
+     *
+     * @return {@link Set}&lt;{@link HPartnerLink}&gt; with variable values
+     * @hibernate.set lazy="true" inverse="true"
+     * @hibernate.collection-key column="PROCESS" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HPartnerLink"
+     */
+    public Set<HPartnerLink> getDeploymentPartnerLinks() {
+        return _plinks;
+    }
+
+    /**
+     * Set the partner links as deployed.
+     * @param partnerlinks
+     */
+    public void setDeploymentPartnerLinks(Set<HPartnerLink> partnerlinks) {
+        _plinks = partnerlinks;
+    }
+
+
+    /**
+     *
+     * @hibernate.property
+     * @hibernate.column
+     *  name="PROCID"
+     *  not-null="true"
+     *  unique="true"
+     */
+    public String getProcessId() {
+        return _processId;
+    }
+
+    public void setProcessId(String processId) {
+        _processId = processId;
+    }
+
+    /**
+     * The user that deployed the process.
+     * @hibernate.property
+     *    column="deployer"
+     */
+    public String getDeployer() {
+        return _deployer;
+    }
+
+    public void setDeployer(String deployer) {
+        _deployer = deployer;
+    }
+
+
+
+    /**
+     * The date the process was deployed.
+     * @hibernate.property
+     *    column="deploydate"
+     */
+    public Date getDeployDate() {
+        return _deployDate;
+    }
+
+    public void setDeployDate(Date deployDate) {
+        _deployDate = deployDate;
+    }
+
+    /**
+     * The type of the process (BPEL process definition name).
+     * @hibernate.property
+     *     column="type_name"
+     */
+    public String getTypeName() {
+        return _typeName;
+    }
+
+    public void setTypeName(String processName) {
+        _typeName = processName;
+    }
+
+    /**
+     * The type of the process (BPEL process definition name).
+     * @hibernate.property
+     *     column="type_ns"
+     */
+    public String getTypeNamespace() {
+        return _typeNamespace;
+    }
+
+    public void setTypeNamespace(String processName) {
+        _typeNamespace = processName;
+    }
+
+    /**
+     * The process version.
+     * @hibernate.property
+     *    column="version"
+     */
+    public long getVersion() {
+        return _version;
+    }
+
+    public void setVersion(long version) {
+        _version = version;
+    }
+
+    /**
+     * The process status.
+     * @hibernate.property
+     *    column="ACTIVE_"
+     */
+    public boolean isActive() {
+        return _active;
+    }
+
+    public void setActive(boolean active) {
+        _active = active;
+    }
+
+    /**
+     * @hibernate.property
+     */
+    public String getGuid() {
+        return _guid;
+    }
+
+    public void setGuid(String guid) {
+        _guid = guid;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcessInstance.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcessInstance.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcessInstance.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HProcessInstance.java Sun May  2 17:02:51 2010
@@ -0,0 +1,332 @@
+/*
+ * 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.hib.bpel.hobj;
+
+
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Hibernate table representing a BPEL process instance.
+ * 
+ * @hibernate.class table="BPEL_INSTANCE" dynamic-update="true" lazy="true"
+ * @hibernate.query name="COUNT_FAILED_INSTANCES_BY_PROCESS_IDS_AND_STATES" query="select count(i.id) as cnt, max(i.activityFailureDateTime) as lastFailureDt from HProcessInstance as i where i.process.processId in (:processIds) and i.state in(:states) and i.activityFailureCount > 0"
+ * @hibernate.query name="SELECT_INSTANCES_BY_PROCESS" query="from HProcessInstance as i where i.process = :process)"
+ * @hibernate.query name="SELECT_INSTANCES_BY_PROCESSES_AND_STATES" query="from HProcessInstance as i where i.process in (:processes) and i.state in (:states)"
+ */
+public class HProcessInstance extends HObject {
+    public static final String COUNT_FAILED_INSTANCES_BY_PROCESS_IDS_AND_STATES="COUNT_FAILED_INSTANCES_BY_PROCESS_IDS_AND_STATES";
+    public static final String SELECT_INSTANCES_BY_PROCESS="SELECT_INSTANCES_BY_PROCESS";
+    public static final String SELECT_INSTANCES_BY_PROCESSES_AND_STATES="SELECT_INSTANCES_BY_PROCESSES_AND_STATES";
+
+    /** Foreign key to owner {@link HProcess}. */
+    private HProcess _process;
+
+    private Long _processId;
+
+    /** Foreign key to the instantiating {@link HCorrelator}. */
+    private HCorrelator _instantiatingCorrelator;
+
+    private String _instantiatingUrl;
+
+    /** Scope instances belonging to this process instnace. */
+    private Collection<HScope> _scopes = new HashSet<HScope>();
+
+    private Collection<HCorrelationSet> _csets = new HashSet<HCorrelationSet>();
+
+    /** Events belonging to this instance. */
+    private Collection<HBpelEvent> _events = new HashSet<HBpelEvent>();
+
+    private Set<HCorrelatorSelector> _correlatorSelectors = new HashSet<HCorrelatorSelector>();
+
+    private Set<HMessageExchange> _messageExchanges = new HashSet<HMessageExchange>();
+
+    private Set<HResourceRoute> _resourceRoutes = new HashSet<HResourceRoute>();
+
+    private HFaultData _fault;
+
+    private HLargeData _jacobState;
+
+    private short _previousState;
+
+    private short _state;
+
+    private Date _lastActiveTime;
+
+    private Date _activityFailureDateTime;
+
+    private int _activityFailureCount;
+
+    private Collection<HActivityRecovery> _activityRecoveries = new HashSet<HActivityRecovery>();
+
+    private long _seq;
+
+    private int _execStateCounter;
+
+    /**
+     *
+     */
+    public HProcessInstance() {
+        super();
+    }
+
+    /**
+     * @hibernate.many-to-one column="INSTANTIATING_CORRELATOR" foreign-key="none"
+     */
+    public HCorrelator getInstantiatingCorrelator() {
+        return _instantiatingCorrelator;
+    }
+
+    public void setInstantiatingCorrelator(HCorrelator instantiatingCorrelator) {
+        _instantiatingCorrelator = instantiatingCorrelator;
+    }
+
+    /**
+     * @hibernate.many-to-one column="FAULT" column="FAULT" foreign-key="none"
+     */
+    public HFaultData getFault() {
+        return _fault;
+    }
+
+    public void setFault(HFaultData fault) {
+        _fault = fault;
+    }
+
+    /**
+     * @hibernate.many-to-one column="JACOB_STATE" foreign-key="none"
+     */
+    public HLargeData getJacobState() {
+        return _jacobState;
+    }
+
+    public void setJacobState(HLargeData jacobState) {
+        _jacobState = jacobState;
+    }
+
+    /**
+     * @hibernate.bag lazy="true" inverse="true"
+     * @hibernate.collection-key column="IID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HBpelEvent"
+     */
+    public Collection<HBpelEvent> getEvents() {
+        return _events;
+    }
+
+    public void setEvents(Collection<HBpelEvent> events) {
+        _events = events;
+    }
+
+    /**
+     * @hibernate.set lazy="true" inverse="true"
+     * @hibernate.collection-key column="PIID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HCorrelatorSelector"
+     */
+    public Set<HCorrelatorSelector> getCorrelatorSelectors() {
+        return _correlatorSelectors;
+    }
+
+    /**
+     * @param selectors
+     *            the _correlatorSelectors to set
+     */
+    public void setCorrelatorSelectors(Set<HCorrelatorSelector> selectors) {
+        _correlatorSelectors = selectors;
+    }
+
+    /**
+     * @hibernate.set lazy="true" inverse="true"
+     * @hibernate.collection-key column="PIID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HMessageExchange"
+     */
+    public Set<HMessageExchange> getMessageExchanges() {
+        return _messageExchanges;
+    }
+
+    public void setMessageExchanges(Set<HMessageExchange> exchanges) {
+        _messageExchanges = exchanges;
+    }
+
+    /**
+     * @hibernate.set lazy="true" inverse="true" cascade="delete"
+     * @hibernate.collection-key column="PIID"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HResourceRoute"
+     */
+    public Set<HResourceRoute> getResourceRoutes() {
+        return _resourceRoutes;
+    }
+
+    public void setResourceRoutes(Set<HResourceRoute> rroutes) {
+        _resourceRoutes = rroutes;
+    }
+
+    /**
+     * @hibernate.property column="PREVIOUS_STATE"
+     */
+    public short getPreviousState() {
+        return _previousState;
+    }
+
+    public void setPreviousState(short previousState) {
+        _previousState = previousState;
+    }
+
+    /**
+     *
+     * @hibernate.many-to-one column="PROCESS_ID" lazy="false" outer-join="true" foreign-key="none"
+     */
+    public HProcess getProcess() {
+        return _process;
+    }
+
+    public void setProcess(HProcess process) {
+        _process = process;
+    }
+
+    /**
+     * @hibernate.property column="PROCESS_ID" insert="false" update="false"
+     */
+    public Long getProcessId() {
+        return _processId;
+    }
+
+    public void setProcessId(Long processId) {
+        _processId = processId;
+    }
+
+    /**
+     * @hibernate.bag lazy="true" inverse="true"
+     * @hibernate.collection-key column="PIID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HScope"
+     */
+    public Collection<HScope> getScopes() {
+        return _scopes;
+    }
+
+    public void setScopes(Collection<HScope> scopes) {
+        _scopes = scopes;
+    }
+
+    /**
+     * @hibernate.bag lazy="true" inverse="true"
+     * @hibernate.collection-key column="PIID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HCorrelationSet"
+     */
+    public Collection<HCorrelationSet> getCorrelationSets() {
+        return _csets;
+    }
+
+    public void setCorrelationSets(Collection<HCorrelationSet> csets) {
+        _csets = csets;
+    }
+
+    /**
+     * @hibernate.property column="STATE"
+     */
+    public short getState() {
+        return _state;
+    }
+
+    public void setState(short state) {
+        _state = state;
+    }
+
+    /**
+     * @hibernate.property column="LAST_ACTIVE_DT"
+     */
+    public Date getLastActiveTime() {
+        return _lastActiveTime;
+    }
+
+    public void setLastActiveTime(Date lastActiveTime) {
+        _lastActiveTime = lastActiveTime;
+    }
+
+    public void setSequence(long seq) {
+        _seq = seq;
+    }
+
+    /**
+     * @hibernate.property column="SEQUENCE"
+     */
+    public long getSequence() {
+        return _seq;
+    }
+
+    /**
+     * @hibernate.bag lazy="true" inverse="true" cascade="delete"
+     * @hibernate.collection-key column="PIID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HActivityRecovery"
+     */
+    public Collection<HActivityRecovery> getActivityRecoveries() {
+        return _activityRecoveries;
+    }
+
+    public void setActivityRecoveries(Collection<HActivityRecovery> activityRecoveries) {
+        _activityRecoveries = activityRecoveries;
+    }
+
+    /**
+     * @hibernate.property column="FAILURE_COUNT"
+     */
+    public int getActivityFailureCount() {
+        return _activityFailureCount;
+    }
+
+    public void setActivityFailureCount(int count) {
+        _activityFailureCount = count;
+    }
+
+    /**
+     * @hibernate.property column="FAILURE_DT"
+     */
+    public Date getActivityFailureDateTime() {
+        return _activityFailureDateTime;
+    }
+
+    public void setActivityFailureDateTime(Date dateTime) {
+        _activityFailureDateTime = dateTime;
+    }
+
+    /**
+     * @hibernate.property column="EXEC_STATE_COUNT"
+     * @return
+     */
+    public int getExecutionStateCounter() {
+        return _execStateCounter;
+    }
+
+    public void setExecutionStateCounter(int stateCounter) {
+        _execStateCounter = stateCounter;
+        
+    }
+
+    /**
+     * @hibernate.property column="INSTANTIATE_URL" size=255
+     * @return
+     */
+    public String getInstantiatingUrl() {
+        return _instantiatingUrl;
+    }
+
+    public void setInstantiatingUrl(String instantiatingUrl) {
+        _instantiatingUrl = instantiatingUrl;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HResourceRoute.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HResourceRoute.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HResourceRoute.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HResourceRoute.java Sun May  2 17:02:51 2010
@@ -0,0 +1,72 @@
+package org.apache.ode.dao.hib.bpel.hobj;
+
+/**
+ * @hibernate.class table="BPEL_RES_ROUTE"
+ */
+public class HResourceRoute extends HObject {
+
+    private String _url;
+    private String _method;
+    private String _channelId;
+    private int _index;
+    private HProcessInstance _instance;
+
+    public HResourceRoute() {
+        super();
+    }
+
+    /**
+     * @hibernate.property column="URL" not-null="true" size="255"
+     */
+    public String getUrl() {
+        return _url;
+    }
+
+    public void setUrl(String url) {
+        _url = url;
+    }
+
+    /**
+     * @hibernate.property column="METHOD" not-null="true" size="8"
+     */
+    public String getMethod() {
+        return _method;
+    }
+
+    public void setMethod(String method) {
+        _method = method;
+    }
+
+    /**
+     * @hibernate.property column="CHANNEL" not-null="true"
+     */
+    public String getChannelId() {
+        return _channelId;
+    }
+
+    public void setChannelId(String channelId) {
+        _channelId = channelId;
+    }
+
+    /**
+     * @hibernate.property column="CHAN_INDEX" not-null="true"
+     */
+    public int getIndex() {
+        return _index;
+    }
+
+    public void setIndex(int index) {
+        _index = index;
+    }
+
+    /**
+     * @hibernate.many-to-one column="PIID"
+     */
+    public HProcessInstance getInstance() {
+        return _instance;
+    }
+
+    public void setInstance(HProcessInstance instance) {
+        _instance = instance;
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HScope.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HScope.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HScope.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HScope.java Sun May  2 17:02:51 2010
@@ -0,0 +1,173 @@
+/*
+ * 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.hib.bpel.hobj;
+
+import java.util.HashSet;
+import java.util.Set;
+
+/**
+ * Hibernate table representing a BPEL scope instance.
+ * 
+ * @hibernate.class table="BPEL_SCOPE"
+ * @hibernate.query name="SELECT_SCOPE_IDS_BY_INSTANCES" query="select id from HScope as s where s.instance in (:instances)"
+ */
+public class HScope extends HObject{
+    public final static String SELECT_SCOPE_IDS_BY_INSTANCES = "SELECT_SCOPE_IDS_BY_INSTANCES";
+
+    /** Process instance to which this scope belongs. */
+    private HProcessInstance _instance;
+
+    /** Correlation set values for csets declared in this scope. */
+    private Set<HCorrelationSet> _correlationSets = new HashSet<HCorrelationSet>();
+
+    /** Variable values for variables declared in this scope. */
+    private Set<HXmlData> _variables = new HashSet<HXmlData>();
+
+    /** Enpoint References for partner links declared in this scope */
+    private Set<HPartnerLink> _partnerLinks = new HashSet<HPartnerLink>();
+
+    /** Parent scope for this scope. */
+    private HScope _parentScope;
+
+    /** State of the scope. */
+    private String _state;
+
+    /** Scope type / name. */
+    private String _name;
+
+    private int _scopeModelId;
+
+    public HScope() {
+    }
+
+    /**
+     * @hibernate.set lazy="true" inverse="true" cascade="delete"
+     * @hibernate.collection-key column="SCOPE_ID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HCorrelationSet"
+     */
+    public Set<HCorrelationSet> getCorrelationSets() {
+        return _correlationSets;
+    }
+
+    public void setCorrelationSets(Set<HCorrelationSet> correlationSets) {
+        _correlationSets = correlationSets;
+    }
+
+    /**
+     * Get the {@link HProcessInstance} to which this scope object belongs.
+     * 
+     * @hibernate.many-to-one column="PIID" foreign-key="none"
+     */
+    public HProcessInstance getInstance() {
+        return _instance;
+    }
+
+    /** @see #getInstance() */
+    public void setInstance(HProcessInstance instance) {
+        _instance = instance;
+    }
+
+    /**
+     * Get the "parent" {@link HScope} of this scope.
+     * 
+     * @hibernate.many-to-one column="PARENT_SCOPE_ID" foreign-key="none"
+     */
+    public HScope getParentScope() {
+        return _parentScope;
+    }
+
+    /** @see #getParentScope() */
+    public void setParentScope(HScope parentScope) {
+        _parentScope = parentScope;
+    }
+
+    /**
+     * @hibernate.property column="STATE" not-null="true"
+     */
+    public String getState() {
+        return _state;
+    }
+
+    /** @see #getState() */
+    public void setState(String state) {
+        _state = state;
+    }
+
+    /**
+     * Get the type (i.e. the name) of the scope.
+     * 
+     * @hibernate.property column="NAME"
+     */
+    public String getName() {
+        return _name;
+    }
+
+    /** @see #getName() */
+    public void setName(String name) {
+        _name = name;
+    }
+
+    /**
+     * Get the variable values associated with this scope.
+     * 
+     * @return {@link Set}&lt;{@link HXmlData}&gt; with variable values
+     * @hibernate.set lazy="true" inverse="true" cascade="delete"
+     * @hibernate.collection-key column="SCOPE_ID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HXmlData"
+     */
+    public Set<HXmlData> getVariables() {
+        return _variables;
+    }
+
+    public void setVariables(Set<HXmlData> variables) {
+        _variables = variables;
+    }
+
+    /**
+     * Get the endpoint references for partner links roles associated with this
+     * scope.
+     * 
+     * @return {@link Set}&lt;{@link HPartnerLink}&gt; with variable values
+     * @hibernate.set lazy="true" inverse="true" cascade="delete"
+     * @hibernate.collection-key column="SCOPE" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HPartnerLink"
+     */
+    public Set<HPartnerLink> getPartnerLinks() {
+        return _partnerLinks;
+    }
+
+    public void setPartnerLinks(Set<HPartnerLink> eprs) {
+        _partnerLinks = eprs;
+    }
+
+    /**
+     * @hibernate.property column="MODELID"
+     */
+    public int getScopeModelId() {
+        return _scopeModelId;
+    }
+
+    public void setScopeModelId(int scopeModelId) {
+        _scopeModelId = scopeModelId;
+    }
+
+    public String toString() {
+        return "HScope{id=" + getId() + ",name=" + _name + "}";
+    }
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HVariableProperty.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HVariableProperty.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HVariableProperty.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HVariableProperty.java Sun May  2 17:02:51 2010
@@ -0,0 +1,82 @@
+/*
+ * 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.hib.bpel.hobj;
+
+/**
+ * Efficient storage of properties (bpel properties). Useful for identification
+ * of process instances based on indexed lookup of property values.
+ * 
+ * @hibernate.class table="VAR_PROPERTY"
+ * @hibernate.query name="SELECT_VARIABLE_PROPERTY_IDS_BY_INSTANCES" query="select id from HVariableProperty as p where p.xmlData in(select x.id from HXmlData x where x.instance in (:instances))"
+ */
+public class HVariableProperty extends HObject{
+    public final static String SELECT_VARIABLE_PROPERTY_IDS_BY_INSTANCES = "SELECT_VARIABLE_PROPERTY_IDS_BY_INSTANCES";
+
+    private String _propertyValue;
+    private String _propertyName;
+    private HXmlData _variable;
+
+    /**
+   * 
+   */
+    public HVariableProperty() {
+        super();
+    }
+
+    public HVariableProperty(HXmlData var, String name, String value) {
+        _variable = var;
+        _propertyName = name;
+        _propertyValue = value;
+    }
+
+    /**
+     * @hibernate.many-to-one column="XML_DATA_ID" foreign-key="none"
+     */
+    public HXmlData getXmlData() {
+        return _variable;
+    }
+
+    public void setXmlData(HXmlData xmldata) {
+        _variable = xmldata;
+    }
+
+    /**
+     * @hibernate.property column="PROP_VALUE" index="PROP_VALUE_IDX"
+     */
+    public String getValue() {
+        return _propertyValue;
+    }
+
+    public void setValue(String value) {
+        _propertyValue = value;
+    }
+
+    /**
+     * @hibernate.property column="PROP_NAME" type="string" length="255"
+     *                     not-null="true" index="PROP_NAME_IDX"
+     */
+    public String getName() {
+        return _propertyName;
+    }
+
+    public void setName(String name) {
+        _propertyName = name;
+    }
+
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HXmlData.java
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HXmlData.java?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HXmlData.java (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/HXmlData.java Sun May  2 17:02:51 2010
@@ -0,0 +1,116 @@
+/*
+ * 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.hib.bpel.hobj;
+
+import java.util.Collection;
+import java.util.HashSet;
+
+/**
+ * @hibernate.class table="BPEL_XML_DATA"
+ * @hibernate.query name="SELECT_XMLDATA_IDS_BY_INSTANCES" query="select id from HXmlData as x where x.instance in (:instances)"
+ */
+public class HXmlData extends HObject{
+    public static final String SELECT_XMLDATA_IDS_BY_INSTANCES = "SELECT_XMLDATA_IDS_BY_INSTANCES";
+
+    private boolean _simpleType;
+    private HLargeData _data;
+    private Collection<HVariableProperty> _properties = new HashSet<HVariableProperty>();
+    private String _name;
+    private HScope _scope;
+    private HProcessInstance _instance;
+
+    /** Constructor. */
+    public HXmlData() {
+        super();
+    }
+
+    /**
+     * @hibernate.many-to-one column="LDATA_ID" cascade="delete" foreign-key="none"
+     */
+    public HLargeData getData() {
+        return _data;
+    }
+
+    public void setData(HLargeData data) {
+        _data = data;
+    }
+
+    /**
+     * @hibernate.property column="NAME" type="string" length="255"
+     *                     not-null="true"
+     */
+    public String getName() {
+        return _name;
+    }
+
+    public void setName(String name) {
+        _name = name;
+    }
+
+    /**
+     * @hibernate.bag lazy="true" inverse="true" cascade="delete"
+     * @hibernate.collection-key column="XML_DATA_ID" foreign-key="none"
+     * @hibernate.collection-one-to-many class="org.apache.ode.dao.hib.bpel.hobj.HVariableProperty"
+     */
+    public Collection<HVariableProperty> getProperties() {
+        return _properties;
+    }
+
+    public void setProperties(Collection<HVariableProperty> properties) {
+        _properties = properties;
+    }
+
+    /**
+     * @hibernate.many-to-one column="SCOPE_ID" foreign-key="none"
+     */
+    public HScope getScope() {
+        return _scope;
+    }
+
+    public void setScope(HScope scope) {
+        _scope = scope;
+
+        if (scope != null) {
+            setInstance(scope.getInstance());
+        }
+    }
+
+    /**
+     * @hibernate.many-to-one column="PIID" foreign-key="none"
+     */
+    public HProcessInstance getInstance() {
+        return _instance;
+    }
+
+    public void setInstance(HProcessInstance instance) {
+        _instance = instance;
+    }
+
+    /**
+     * @hibernate.property column="IS_SIMPLE_TYPE"
+     */
+    public boolean isSimpleType() {
+        return _simpleType;
+    }
+
+    public void setSimpleType(boolean simpleType) {
+        _simpleType = simpleType;
+    }
+
+}

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/package.html
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/package.html?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/package.html (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/hobj/package.html Sun May  2 17:02:51 2010
@@ -0,0 +1,30 @@
+<!--
+  ~ 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.
+  -->
+
+<html>
+<body>
+<p>
+Hibernate POJOs for bpel.
+</p>
+
+<p>
+
+</p>
+</body>
+</html>

Added: ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/package.html
URL: http://svn.apache.org/viewvc/ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/package.html?rev=940263&view=auto
==============================================================================
--- ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/package.html (added)
+++ ode/trunk/dao-hibernate/src/main/java/org/apache/ode/dao/hib/bpel/package.html Sun May  2 17:02:51 2010
@@ -0,0 +1,30 @@
+<!--
+  ~ 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.
+  -->
+
+<html>
+<body>
+<p>
+An implementation of the BPEL data access objects (DAO) api using hibernate.
+</p>
+
+<p>
+
+</p>
+</body>
+</html>