You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by dl...@apache.org on 2006/12/24 04:12:08 UTC

svn commit: r489971 - in /portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons: persistence/driver/ producer/driver/ producer/provider/driver/

Author: dlouzan
Date: Sat Dec 23 19:12:07 2006
New Revision: 489971

URL: http://svn.apache.org/viewvc?view=rev&rev=489971
Log:
First version of hibernate mapping files.

Modified:
    portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/persistence/driver/WSRPServiceDescription.hbm.xml
    portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/driver/RegistrationImpl.hbm.xml
    portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerConfiguredPortletImpl.hbm.xml
    portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerPortletRegistrationImpl.hbm.xml

Modified: portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/persistence/driver/WSRPServiceDescription.hbm.xml
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/persistence/driver/WSRPServiceDescription.hbm.xml?view=diff&rev=489971&r1=489970&r2=489971
==============================================================================
--- portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/persistence/driver/WSRPServiceDescription.hbm.xml (original)
+++ portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/persistence/driver/WSRPServiceDescription.hbm.xml Sat Dec 23 19:12:07 2006
@@ -1,8 +1,64 @@
 <?xml version="1.0"?>
+<!--
+Copyright 2003-2006 The Apache Software Foundation.
+
+Licensed 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.
+-->
+
 <!DOCTYPE hibernate-mapping PUBLIC
         "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
         "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
 <hibernate-mapping>
+    
+    <class name="org.apache.wsrp4j.commons.persistence.driver.WSRPServiceDescription"
+           table="SERVICE_DESC">
+        <id name="id" column="ID"/>
+        <property name="requiresInitCookie" type="string" column="RQRCOOKIE"/>
+        <property name="requiresRegistration" type="boolean" column="RQRREG"/>
+        <property name="registrationPropertyDescription"
+                  type="oasis.names.tc.wsrp.v1.types.ModelDescription"
+                  column="REGPROPDESC"/>
+        <array name="userCategoryDescriptions" table="USER_CATEGORY_DESC">
+            <key column="ID"/>
+            <list-index column="IDX"/>
+            <composite-element class="oasis.names.tc.wsrp.v1.types.ItemDescription"/>
+        </array>
+        <array name="customUserProfileItemDescriptions" table="SERVDESC_CUSTOM_USERPROF_ITEMDESC">
+            <key column="ID"/>
+            <list-index column="IDX"/>
+            <composite-element class="oasis.names.tc.wsrp.v1.types.ItemDescription"/>
+        </array>
+        <array name="customWindowStateDescriptions" table="SERVDESC_CUSTOM_WINDOWSTATE_DESC">
+            <key column="ID"/>
+            <list-index column="IDX"/>
+            <composite-element class="oasis.names.tc.wsrp.v1.types.ItemDescription"/>
+        </array>
+        <array name="customModeDescriptions" table="SERVDESC_CUSTOM_MODE_DESC">
+            <key column="ID"/>
+            <list-index column="IDX"/>
+            <composite-element class="oasis.names.tc.wsrp.v1.types.ItemDescription"/>
+        </array>
+        <array name="locales" table="SERVDESC_LOCALE">
+            <key column="ID"/>
+            <list-index column="IDX"/>
+            <composite-element class="string"/>
+        </array>
+        <array name="extensions" table="SERVDESC_EXT">
+            <key column="ID"/>
+            <list-index column="IDX"/>
+            <composite-element class="oasis.names.tc.wsrp.v1.types.Extension"/>
+        </array>
+    </class>
 
 </hibernate-mapping>

Modified: portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/driver/RegistrationImpl.hbm.xml
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/driver/RegistrationImpl.hbm.xml?view=diff&rev=489971&r1=489970&r2=489971
==============================================================================
--- portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/driver/RegistrationImpl.hbm.xml (original)
+++ portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/driver/RegistrationImpl.hbm.xml Sat Dec 23 19:12:07 2006
@@ -1,8 +1,33 @@
 <?xml version="1.0"?>
+<!--
+Copyright 2003-2006 The Apache Software Foundation.
+
+Licensed 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.
+-->
+
 <!DOCTYPE hibernate-mapping PUBLIC
         "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
         "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
 <hibernate-mapping>
+    
+    <class name="org.apache.wsrp4j.commons.producer.driver.RegistrationImpl"
+           table="REGISTRATION">
+        <composite-id class="oasis.names.tc.wsrp.v1.types.RegistrationContext">
+            <key-property name="registrationHandle" column="REGHANDLE"/>
+        </composite-id>
+        <property name="registrationContext" column="REGCTXT"/>
+        <property name="registrationData" column="REGDATA"/>
+    </class>
 
 </hibernate-mapping>

Modified: portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerConfiguredPortletImpl.hbm.xml
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerConfiguredPortletImpl.hbm.xml?view=diff&rev=489971&r1=489970&r2=489971
==============================================================================
--- portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerConfiguredPortletImpl.hbm.xml (original)
+++ portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerConfiguredPortletImpl.hbm.xml Sat Dec 23 19:12:07 2006
@@ -1,8 +1,30 @@
 <?xml version="1.0"?>
+<!--
+Copyright 2003-2006 The Apache Software Foundation.
+
+Licensed 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.
+-->
+
 <!DOCTYPE hibernate-mapping PUBLIC
         "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
         "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
 <hibernate-mapping>
+    
+    <class name="org.apache.wsrp4j.commons.producer.provider.driver.ConsumerConfiguredPortletImpl"
+           table="CONSUMER_CONF_PORTLET">
+        <id name="portletHandle" type="string" column="PORTLETHANDLE"/>
+        <property name="parentHandle" type="string" column="PARENTHANDLE"/>
+    </class>
 
 </hibernate-mapping>

Modified: portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerPortletRegistrationImpl.hbm.xml
URL: http://svn.apache.org/viewvc/portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerPortletRegistrationImpl.hbm.xml?view=diff&rev=489971&r1=489970&r2=489971
==============================================================================
--- portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerPortletRegistrationImpl.hbm.xml (original)
+++ portals/wsrp4j/trunk/persistence-db/src/resources/org/apache/wsrp4j/commons/producer/provider/driver/ConsumerPortletRegistrationImpl.hbm.xml Sat Dec 23 19:12:07 2006
@@ -1,8 +1,33 @@
 <?xml version="1.0"?>
+<!--
+Copyright 2003-2006 The Apache Software Foundation.
+
+Licensed 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.
+-->
+
 <!DOCTYPE hibernate-mapping PUBLIC
         "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
         "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
 <hibernate-mapping>
+    
+    <class name="org.apache.wsrp4j.commons.producer.provider.driver.ConsumerPortletRegistrationImpl"
+           table="CONSUMER_PORTLET_REG">
+        <id name="registrationHandle" type="string" column="REG_HANDLE"/>
+        <set name="portletHandles" table="CONSPORTLREG_PORTLET_HANDLE">
+            <key column="REG_HANDLE"/>
+            <element column="PORTLET_HANDLE" type="string"/>
+        </set>
+    </class>
 
 </hibernate-mapping>