Update of 
/cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/resources
In directory sc8-pr-cvs1:/tmp/cvs-serv32543/src/xdoclet/modules/jboss/ejb/resources

Modified Files:
        jbosscmp-jdbc_3_2.dtd jbosscmp-jdbc_xml.xdt 
Log Message:
applied patches from XDT-496


Index: jbosscmp-jdbc_3_2.dtd
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/resources/jbosscmp-jdbc_3_2.dtd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** jbosscmp-jdbc_3_2.dtd       21 Feb 2003 04:27:44 -0000      1.1
--- jbosscmp-jdbc_3_2.dtd       29 May 2003 13:37:59 -0000      1.2
***************
*** 19,23 ****
  -->
  <!ELEMENT defaults ((datasource, datasource-mapping)?, create-table?,
!          remove-table?, read-only?, read-time-out?, row-locking?,
           pk-constraint?, fk-constraint?, preferred-relation-mapping?,
           read-ahead?, list-cache-max?, fetch-size?, unknown-pk?,
--- 19,23 ----
  -->
  <!ELEMENT defaults ((datasource, datasource-mapping)?, create-table?,
!          remove-table?, post-table-create?, read-only?, read-time-out?, row-locking?,
           pk-constraint?, fk-constraint?, preferred-relation-mapping?,
           read-ahead?, list-cache-max?, fetch-size?, unknown-pk?,
***************
*** 58,61 ****
--- 58,73 ----
  <!ELEMENT remove-table (#PCDATA)>
  
+ <!--
+ Execute arbitrary SQL code directly after the database table is created.
+ This command is only executed if create-table is true and the table
+ did not previously exist.     
+ -->   
+ <!ELEMENT post-table-create (sql-statement+)>
+ 
+ <!--
+ The SQL Statement to be executed. Note that this is not translated
+ into database specific SQL, but passed literally to the database.
+ -->
+ <!ELEMENT sql-statement (#PCDATA)>
  
  <!--
***************
*** 169,173 ****
  -->
  <!ELEMENT entity (ejb-name, (datasource, datasource-mapping)?, create-table?,
!          remove-table?, read-only?, read-time-out?, row-locking?,
           pk-constraint?, read-ahead?, list-cache-max?, fetch-size?, table-name?,
           cmp-field*, load-groups?, eager-load-group?, lazy-load-groups?,
--- 181,185 ----
  -->
  <!ELEMENT entity (ejb-name, (datasource, datasource-mapping)?, create-table?,
!          remove-table?, post-table-create?, read-only?, read-time-out?, row-locking?,
           pk-constraint?, read-ahead?, list-cache-max?, fetch-size?, table-name?,
           cmp-field*, load-groups?, eager-load-group?, lazy-load-groups?,
***************
*** 193,197 ****
  <!ELEMENT cmp-field (field-name, read-only?, read-time-out?,
           column-name?, not-null?, ((jdbc-type, sql-type) | (property+))?,
!          auto-increment? )>
  
  
--- 205,209 ----
  <!ELEMENT cmp-field (field-name, read-only?, read-time-out?,
           column-name?, not-null?, ((jdbc-type, sql-type) | (property+))?,
!          auto-increment?, dbindex? )>
  
  
***************
*** 214,217 ****
--- 226,234 ----
  <!ELEMENT not-null EMPTY>
  
+ <!--
+ If present, the server will try to create an index on the column
+ in the database called <fieldname>_index
+ -->
+ <!ELEMENT dbindex EMPTY>
  
  <!--

Index: jbosscmp-jdbc_xml.xdt
===================================================================
RCS file: 
/cvsroot/xdoclet/xdoclet/modules/jboss/src/xdoclet/modules/jboss/ejb/resources/jbosscmp-jdbc_xml.xdt,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -r1.47 -r1.48
*** jbosscmp-jdbc_xml.xdt       17 Apr 2003 19:16:21 -0000      1.47
--- jbosscmp-jdbc_xml.xdt       29 May 2003 13:37:59 -0000      1.48
***************
*** 17,20 ****
--- 17,27 ----
       <remove-table><XDtConfig:configParameterValue 
paramName="removeTable"/></remove-table>
       </XDtConfig:ifHasConfigParam>
+      <XDTConfig:ifConfigParamGreaterOrEquals paramName="Version" value="3.2">
+        <XDTConfig:ifHasConfigParam paramName="post-table-create">
+        <post-table-create>
+          <sql-statement><XDTConfig:configParameterValue 
paramName="post-table-create"/></sql-statement>
+        </post-table-create>
+        </XDTConfig:ifHasConfigParam>
+      </XDTConfig:ifConfigParamGreaterOrEquals>
       <XDtConfig:ifHasConfigParam paramName="readOnly">
       <read-only><XDtConfig:configParameterValue paramName="readOnly"/></read-only>
***************
*** 182,185 ****
--- 189,195 ----
                    <XDtMethod:ifHasMethodTag tagName="jboss:persistence" 
paramName="auto-increment">
                        <auto-increment/>
+                   </XDtMethod:ifHasMethodTag>
+                   <XDtMethod:ifHasMethodTag tagName="jboss:persistence" 
paramName="dbindex">
+                   <dbindex/>
                    </XDtMethod:ifHasMethodTag>
          </cmp-field>



-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to