cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject svn commit: r419327 - in /cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources: repository_bricks.xml repository_database.xml repository_internal.xml
Date Wed, 05 Jul 2006 20:27:05 GMT
Author: giacomo
Date: Wed Jul  5 13:27:04 2006
New Revision: 419327

URL: http://svn.apache.org/viewvc?rev=419327&view=rev
Log:
add autoincrement

Modified:
    cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_bricks.xml
    cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_database.xml
    cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_internal.xml

Modified: cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_bricks.xml
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_bricks.xml?rev=419327&r1=419326&r2=419327&view=diff
==============================================================================
--- cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_bricks.xml
(original)
+++ cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_bricks.xml
Wed Jul  5 13:27:04 2006
@@ -24,6 +24,7 @@
   <field-descriptor name="id" 
                     column="ID" 
                     jdbc-type="INTEGER" 
+                    autoincrement="true"
                     primarykey="true" />
   <field-descriptor name="persistentStorageVersion" 
                     column="OP_LOCK_VERSION" 

Modified: cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_database.xml
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_database.xml?rev=419327&r1=419326&r2=419327&view=diff
==============================================================================
--- cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_database.xml
(original)
+++ cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_database.xml
Wed Jul  5 13:27:04 2006
@@ -71,10 +71,10 @@
             removeAbandonedTimeout="8"/>
 
         <sequence-manager className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
-            <attribute attribute-name="grabSize" attribute-value="5"/>
+            <attribute attribute-name="seq.start" attribute-value="1"/>
+            <attribute attribute-name="grabSize" attribute-value="20"/>
             <attribute attribute-name="autoNaming" attribute-value="true"/>
             <attribute attribute-name="globalSequenceId" attribute-value="false"/>
-            <attribute attribute-name="globalSequenceStart" attribute-value="1"/>
         </sequence-manager>
     </jdbc-connection-descriptor>
 

Modified: cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_internal.xml
URL: http://svn.apache.org/viewvc/cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_internal.xml?rev=419327&r1=419326&r2=419327&view=diff
==============================================================================
--- cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_internal.xml
(original)
+++ cocoon/whiteboard/example-apps/bricks-archetype/src/main/resources/repository_internal.xml
Wed Jul  5 13:27:04 2006
@@ -2,265 +2,29 @@
 <!-- OJB INTERNAL MAPPINGS START HERE, DO NOT EDIT -->
 <!--
   Copyright 1999-2005 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
-
+  
+  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.
-
+  
   $Id: repository_internal.xml 177918 2005-05-23 04:52:45Z antonio $
 -->
-
 <!-- The OJB HIGH/LOW SequenceManagerTable -->
-   <class-descriptor
-      class="org.apache.ojb.broker.util.sequence.HighLowSequence"
-      table="OJB_HL_SEQ"
-   >
-
-       <object-cache class="org.apache.ojb.broker.cache.ObjectCacheEmptyImpl">
-       </object-cache>
-
-       <field-descriptor
-         name="tableName"
-         column="TABLENAME"
-         jdbc-type="VARCHAR"
-         primarykey="true"
-      />
-      <field-descriptor
-         name="fieldName"
-         column="FIELDNAME"
-         jdbc-type="VARCHAR"
-         primarykey="true"
-      />
-      <field-descriptor
-         name="maxKey"
-         column="MAX_KEY"
-         jdbc-type="BIGINT"
-      />
-      <field-descriptor
-         name="grabSize"
-         column="GRAB_SIZE"
-         jdbc-type="INTEGER"
-      />
-      <field-descriptor
-         name="version"
-         column="VERSION"
-         jdbc-type="INTEGER"
-         locking="true"
-      />
-   </class-descriptor>
-
-
-<!-- THIS IS THE OJB NAMED ROOTS TABLE, DO NOT EDIT-->
-   <class-descriptor
-   	  class="org.apache.ojb.odmg.NamedRootsMap$NamedEntry"
-   	  table="OJB_NRM"
-   >
-      <field-descriptor
-         name="name"
-         column="NAME"
-         jdbc-type="VARCHAR"
-         primarykey="true"
-      />
-      <field-descriptor
-         name="oid"
-         column="OID_"
-         jdbc-type="LONGVARBINARY"
-      />
-   </class-descriptor>
-
-<!-- THIS IS THE OJB DLIST IMPLEMENTATION, DO NOT EDIT-->
-   <class-descriptor
-   	  class="org.apache.ojb.odmg.collections.DListImpl"
-   	  table="OJB_DLIST"
-   >
-      <field-descriptor
-         name="id"
-         column="ID"
-         jdbc-type="INTEGER"
-         primarykey="true"
-         autoincrement="true"
-      />
-
-      <collection-descriptor
-         name="elements"
-         element-class-ref="org.apache.ojb.odmg.collections.DListEntry"
-          auto-retrieve = "true"
-          auto-update="none"
-          auto-delete="none"
-      >
-         <inverse-foreignkey field-ref="dlistId"/>
-      </collection-descriptor>
-   </class-descriptor>
-
-<!-- THIS IS THE OJB DLIST ENTRY IMPLEMENTATION, DO NOT EDIT-->
-   <class-descriptor
-      class="org.apache.ojb.odmg.collections.DListEntry"
-      table="OJB_DLIST_ENTRIES"
-   >
-      <field-descriptor
-         name="id"
-         column="ID"
-         jdbc-type="INTEGER"
-         primarykey="true"
-         autoincrement="true"
-      />
-      <field-descriptor
-         name="dlistId"
-         column="DLIST_ID"
-         jdbc-type="INTEGER"
-      />
-      <field-descriptor
-         name="position"
-         column="POSITION_"
-         jdbc-type="INTEGER"
-      />
-      <field-descriptor
-         name="oid"
-         column="OID_"
-         jdbc-type="LONGVARBINARY"
-         conversion="org.apache.ojb.broker.accesslayer.conversions.Object2ByteArrFieldConversion"
-      />
-   </class-descriptor>
-
-   <!-- THIS IS THE OJB DBAG IMPLEMENTATION, DO NOT EDIT-->
-   <class-descriptor
-   	  class="org.apache.ojb.odmg.collections.DBagImpl"
-   	  table="OJB_DLIST"
-   >
-      <field-descriptor
-         name="id"
-         column="ID"
-         jdbc-type="INTEGER"
-         primarykey="true"
-         autoincrement="true"
-      />
-      <collection-descriptor
-         name="elements"
-         element-class-ref="org.apache.ojb.odmg.collections.DListEntry"
-          auto-retrieve = "true"
-          auto-update="none"
-          auto-delete="none"
-      >
-         <inverse-foreignkey field-ref="dlistId"/>
-      </collection-descriptor>
-   </class-descriptor>
-
-<!-- THIS IS THE OJB DSET IMPLEMENTATION, DO NOT EDIT-->
-   <class-descriptor
-   	  class="org.apache.ojb.odmg.collections.DSetImpl"
-   	  table="OJB_DSET"
-   >
-      <field-descriptor
-         name="id"
-         column="ID"
-         jdbc-type="INTEGER"
-         primarykey="true"
-         autoincrement="true"
-      />
-      <collection-descriptor
-         name="elements"
-         element-class-ref="org.apache.ojb.odmg.collections.DSetEntry"
-          auto-retrieve = "true"
-          auto-update="none"
-          auto-delete="none"
-      >
-         <inverse-foreignkey field-ref="dlistId"/>
-      </collection-descriptor>
-   </class-descriptor>
-
-<!-- THIS IS THE OJB DSET ENTRY IMPLEMENTATION, DO NOT EDIT-->
-   <class-descriptor
-   	  class="org.apache.ojb.odmg.collections.DSetEntry"
-   	  table="OJB_DSET_ENTRIES"
-   >
-      <field-descriptor
-         name="id"
-         column="ID"
-         jdbc-type="INTEGER"
-         primarykey="true"
-         autoincrement="true"
-      />
-      <field-descriptor
-         name="dlistId"
-         column="DLIST_ID"
-         jdbc-type="INTEGER"
-      />
-      <field-descriptor
-         name="position"
-         column="POSITION_"
-         jdbc-type="INTEGER"
-      />
-      <field-descriptor
-         name="oid"
-         column="OID_"
-         jdbc-type="LONGVARBINARY"
-         conversion="org.apache.ojb.broker.accesslayer.conversions.Object2ByteArrFieldConversion"
-      />
-   </class-descriptor>
-
-<!-- THIS IS THE OJB DMAP IMPLEMENTATION, DO NOT EDIT-->
-   <class-descriptor
-   	  class="org.apache.ojb.odmg.collections.DMapImpl"
-   	  table="OJB_DMAP"
-   >
-      <field-descriptor
-         name="id"
-         column="ID"
-         jdbc-type="INTEGER"
-         primarykey="true"
-         autoincrement="true"
-      />
-      <collection-descriptor
-         name="entries"
-         element-class-ref="org.apache.ojb.odmg.collections.DMapEntry"
-         collection-class="org.apache.ojb.broker.util.collections.ManageableHashSet"
-          auto-retrieve = "true"
-          auto-update="none"
-          auto-delete="none"
-      >
-         <inverse-foreignkey field-ref="dmapId"/>
-      </collection-descriptor>
-   </class-descriptor>
-
-<!-- THIS IS THE OJB DMAP ENTRY IMPLEMENTATION, DO NOT EDIT-->
-   <class-descriptor
-   	  class="org.apache.ojb.odmg.collections.DMapEntry"
-   	  table="OJB_DMAP_ENTRIES"
-   >
-      <field-descriptor
-         name="id"
-         column="ID"
-         jdbc-type="INTEGER"
-         primarykey="true"
-         autoincrement="true"
-      />
-      <field-descriptor
-         name="dmapId"
-         column="DMAP_ID"
-         jdbc-type="INTEGER"
-      />
-      <field-descriptor
-         name="keyOid"
-         column="KEY_OID"
-         jdbc-type="LONGVARBINARY"
-         conversion="org.apache.ojb.broker.accesslayer.conversions.Object2ByteArrFieldConversion"
-      />
-      <field-descriptor
-         name="valueOid"
-         column="VALUE_OID"
-         jdbc-type="LONGVARBINARY"
-         conversion="org.apache.ojb.broker.accesslayer.conversions.Object2ByteArrFieldConversion"
-      />
-   </class-descriptor>
-
+<class-descriptor class="org.apache.ojb.broker.util.sequence.HighLowSequence" table="OJB_HL_SEQ">
 
+  <object-cache class="org.apache.ojb.broker.cache.ObjectCacheEmptyImpl" />
 
-   <!-- END OF OJB INTERNAL MAPPINGS-->
+  <field-descriptor name="name" column="TABLENAME" jdbc-type="VARCHAR" primarykey="true"
/>
+  <field-descriptor name="maxKey" column="MAX_KEY" jdbc-type="INTEGER" />
+  <field-descriptor name="grabSize" column="GRAB_SIZE" jdbc-type="INTEGER" />
+  <field-descriptor name="version" column="VERSION" jdbc-type="INTEGER" locking="true"
/>
+</class-descriptor>
+<!-- END OF OJB INTERNAL MAPPINGS-->



Mime
View raw message