portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/java repository_registry.xml
Date Thu, 11 Mar 2004 19:16:14 GMT
jford       2004/03/11 11:16:14

  Modified:    components/registry/src/java repository_registry.xml
  Log:
  Added metadata to the PortletDefnition
  Separate tables for PA and PD metadata
  
  Revision  Changes    Path
  1.7       +53 -6     jakarta-jetspeed-2/components/registry/src/java/repository_registry.xml
  
  Index: repository_registry.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/registry/src/java/repository_registry.xml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- repository_registry.xml	10 Mar 2004 01:17:29 -0000	1.6
  +++ repository_registry.xml	11 Mar 2004 19:16:14 -0000	1.7
  @@ -1,13 +1,52 @@
   <!--
    	- L O C A L I Z E D   F I E L D
   -->   
  +<!--
      <class-descriptor class="org.apache.jetspeed.om.common.LocalizedField">
  -      <extent-class class-ref="org.apache.jetspeed.om.common.impl.LocalizedFieldImpl"
/>         
  +      <extent-class class-ref="org.apache.jetspeed.om.common.impl.LocalizedFieldImpl"
/>
       </class-descriptor>
  -   
  +   -->
      <class-descriptor
  -   	  class="org.apache.jetspeed.om.common.impl.LocalizedFieldImpl"
  -   	  table="METADATA_FIELDS"
  +   	  class="org.apache.jetspeed.om.portlet.impl.PortletApplicationLocalizedFieldImpl"
  +   	  table="PA_METADATA_FIELDS"
  +   >
  +      <field-descriptor
  +         name="id"
  +         column="ID"
  +         jdbc-type="INTEGER"
  +         primarykey="true"
  +         autoincrement="true"
  +      />
  +      <field-descriptor
  +         name="parentId"
  +         column="OBJECT_ID"
  +         jdbc-type="INTEGER"
  +   
  +      />
  +
  +      <field-descriptor
  +         name="value"
  +         column="VALUE"
  +         jdbc-type="VARCHAR"
  +      />
  +      
  +      <field-descriptor
  +         name="name"
  +         column="NAME"
  +         jdbc-type="VARCHAR"
  +      />
  +
  +      <field-descriptor
  +         name="locale"
  +         column="LOCALE_STRING"
  +         jdbc-type="VARCHAR"
  +         conversion="org.apache.jetspeed.util.ojb.LocaleFieldConversion"
  +      />
  +    </class-descriptor>
  +    
  +    <class-descriptor
  +   	  class="org.apache.jetspeed.om.portlet.impl.PortletDefinitionLocalizedFieldImpl"
  +   	  table="PD_METADATA_FIELDS"
      >
         <field-descriptor
            name="id"
  @@ -113,7 +152,7 @@
         
         <collection-descriptor
            name="metadataFields"
  -         element-class-ref="org.apache.jetspeed.om.common.impl.LocalizedFieldImpl"
  +         element-class-ref="org.apache.jetspeed.om.portlet.impl.PortletApplicationLocalizedFieldImpl"
            auto-delete="true"
        	 auto-update = "true"
         	 auto-retrieve = "true"
  @@ -254,7 +293,15 @@
            jdbc-type="VARCHAR"
         />
         
  -      
  +      <collection-descriptor
  +         name="metadataFields"
  +         element-class-ref="org.apache.jetspeed.om.portlet.impl.PortletDefinitionLocalizedFieldImpl"
  +         auto-delete="true"
  +     	 auto-update = "true"
  +      	 auto-retrieve = "true"
  +      >         
  +         <inverse-foreignkey field-ref="parentId"/>
  +      </collection-descriptor>
   
   
         <reference-descriptor 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message