The following comment has been added to this issue:
Author: Mike Youngstrom
Created: Wed, 6 Oct 2004 6:39 PM
Body:
I created a patch to resolve the issue. I also added batch-size and access to the
collection tags: <set>, <list>, <map>, <bag>, <array> and <primitive-array>. This is
my first xdoclet patch so I might not of done everything right but it appears to work
for me.
------------------ Begin Patch ------------------
Index: src/META-INF/xtags.xml
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/modules/hibernate/src/META-INF/xtags.xml,v
retrieving revision 1.41
diff -u -r1.41 xtags.xml
--- src/META-INF/xtags.xml 25 Sep 2004 08:20:40 -0000 1.41
+++ src/META-INF/xtags.xml 6 Oct 2004 23:05:20 -0000
@@ -888,6 +888,21 @@
</option-sets>
</parameter>
<parameter type="text">
+ <name>outer-join</name>
+ <usage-description>Enable outer-join fetching</usage-description>
+ <mandatory>false</mandatory>
+ <default>auto</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>true</option>
+ <option>false</option>
+ <option>auto</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
+ <parameter type="text">
<name>sort</name>
<usage-description>Specify a sorted collection with natural sort
order or a given comparator class</usage-description>
<mandatory>false</mandatory>
@@ -902,6 +917,26 @@
<usage-description>An SQL WHERE condition</usage-description>
<mandatory>false</mandatory>
</parameter>
+ <parameter type="text">
+ <name>batch-size</name>
+ <usage-description>Specify a "batch size" for lazily fetching
instances of this collection</usage-description>
+ <mandatory>false</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>access</name>
+ <usage-description>The strategy Hibernate should use for
accessing the property value.</usage-description>
+ <mandatory>false</mandatory>
+ <default>property</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>field</option>
+ <option>property</option>
+ <option>ClassName</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
</tag>
<tag>
<level>method</level>
@@ -950,6 +985,21 @@
</option-sets>
</parameter>
<parameter type="text">
+ <name>outer-join</name>
+ <usage-description>Enable outer-join fetching</usage-description>
+ <mandatory>false</mandatory>
+ <default>auto</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>true</option>
+ <option>false</option>
+ <option>auto</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
+ <parameter type="text">
<name>order-by</name>
<usage-description>Specify table columns that define the
iteration order</usage-description>
<mandatory>false</mandatory>
@@ -959,6 +1009,26 @@
<usage-description>An SQL WHERE condition</usage-description>
<mandatory>false</mandatory>
</parameter>
+ <parameter type="text">
+ <name>batch-size</name>
+ <usage-description>Specify a "batch size" for lazily fetching
instances of this collection</usage-description>
+ <mandatory>false</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>access</name>
+ <usage-description>The strategy Hibernate should use for
accessing the property value.</usage-description>
+ <mandatory>false</mandatory>
+ <default>property</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>field</option>
+ <option>property</option>
+ <option>ClassName</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
</tag>
<tag>
<level>method</level>
@@ -1001,10 +1071,45 @@
</option-sets>
</parameter>
<parameter type="text">
+ <name>outer-join</name>
+ <usage-description>Enable outer-join fetching</usage-description>
+ <mandatory>false</mandatory>
+ <default>auto</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>true</option>
+ <option>false</option>
+ <option>auto</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
+ <parameter type="text">
<name>where</name>
<usage-description>An SQL WHERE condition</usage-description>
<mandatory>false</mandatory>
</parameter>
+ <parameter type="text">
+ <name>batch-size</name>
+ <usage-description>Specify a "batch size" for lazily fetching
instances of this collection</usage-description>
+ <mandatory>false</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>access</name>
+ <usage-description>The strategy Hibernate should use for
accessing the property value.</usage-description>
+ <mandatory>false</mandatory>
+ <default>property</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>field</option>
+ <option>property</option>
+ <option>ClassName</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
</tag>
<tag>
<level>method</level>
@@ -1046,6 +1151,21 @@
</option-sets>
</parameter>
<parameter type="text">
+ <name>outer-join</name>
+ <usage-description>Enable outer-join fetching</usage-description>
+ <mandatory>false</mandatory>
+ <default>auto</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>true</option>
+ <option>false</option>
+ <option>auto</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
+ <parameter type="text">
<name>sort</name>
<usage-description>Specify a sorted collection with natural sort
order or a given comparator class</usage-description>
<mandatory>false</mandatory>
@@ -1060,6 +1180,26 @@
<usage-description>An SQL WHERE condition</usage-description>
<mandatory>false</mandatory>
</parameter>
+ <parameter type="text">
+ <name>batch-size</name>
+ <usage-description>Specify a "batch size" for lazily fetching
instances of this collection</usage-description>
+ <mandatory>false</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>access</name>
+ <usage-description>The strategy Hibernate should use for
accessing the property value.</usage-description>
+ <mandatory>false</mandatory>
+ <default>property</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>field</option>
+ <option>property</option>
+ <option>ClassName</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
</tag>
<tag>
<level>method</level>
@@ -1094,10 +1234,45 @@
</option-sets>
</parameter>
<parameter type="text">
+ <name>outer-join</name>
+ <usage-description>Enable outer-join fetching</usage-description>
+ <mandatory>false</mandatory>
+ <default>auto</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>true</option>
+ <option>false</option>
+ <option>auto</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
+ <parameter type="text">
<name>where</name>
<usage-description>An SQL WHERE condition</usage-description>
<mandatory>false</mandatory>
</parameter>
+ <parameter type="text">
+ <name>batch-size</name>
+ <usage-description>Specify a "batch size" for lazily fetching
instances of this collection</usage-description>
+ <mandatory>false</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>access</name>
+ <usage-description>The strategy Hibernate should use for
accessing the property value.</usage-description>
+ <mandatory>false</mandatory>
+ <default>property</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>field</option>
+ <option>property</option>
+ <option>ClassName</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
</tag>
<tag>
<level>method</level>
@@ -1132,10 +1307,45 @@
</option-sets>
</parameter>
<parameter type="text">
+ <name>outer-join</name>
+ <usage-description>Enable outer-join fetching</usage-description>
+ <mandatory>false</mandatory>
+ <default>auto</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>true</option>
+ <option>false</option>
+ <option>auto</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
+ <parameter type="text">
<name>where</name>
<usage-description>An SQL WHERE condition</usage-description>
<mandatory>false</mandatory>
</parameter>
+ <parameter type="text">
+ <name>batch-size</name>
+ <usage-description>Specify a "batch size" for lazily fetching
instances of this collection</usage-description>
+ <mandatory>false</mandatory>
+ </parameter>
+ <parameter type="text">
+ <name>access</name>
+ <usage-description>The strategy Hibernate should use for
accessing the property value.</usage-description>
+ <mandatory>false</mandatory>
+ <default>property</default>
+ <option-sets>
+ <option-set>
+ <options>
+ <option>field</option>
+ <option>property</option>
+ <option>ClassName</option>
+ </options>
+ </option-set>
+ </option-sets>
+ </parameter>
</tag>
<!-- Collection mappings -->
Index: src/xdoclet/modules/hibernate/resources/hibernate-properties.xdt
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/hibernate/src/xdoclet/modules/hibernate/resources/hibernate-properties.xdt,v
retrieving revision 1.28
diff -u -r1.28 hibernate-properties.xdt
--- src/xdoclet/modules/hibernate/resources/hibernate-properties.xdt 21 Sep 2004
18:58:40 -0000 1.28
+++ src/xdoclet/modules/hibernate/resources/hibernate-properties.xdt 6 Oct 2004
23:05:20 -0000
@@ -101,6 +101,13 @@
<XDtMethod:ifHasMethodTag tagName="hibernate.set" paramName="where">
where="<XDtMethod:methodTagValue tagName="hibernate.set"
paramName="where" />"
</XDtMethod:ifHasMethodTag>
+ <XDtMethod:ifHasMethodTag tagName="hibernate.set" paramName="outer-join">
+ outer-join="<XDtMethod:methodTagValue tagName="hibernate.set"
paramName="outer-join" values="true,false,auto" default="auto"/>"
+ </XDtMethod:ifHasMethodTag>
+ access="<XDtMethod:methodTagValue tagName="hibernate.set"
paramName="access" values="field,property,Class" default="property"/>"
+ <XDtMethod:ifHasMethodTag tagName="hibernate.set" paramName="batch-size">
+ batch-size="<XDtMethod:methodTagValue tagName="hibernate.set"
paramName="batch-size" default="1"/>"
+ </XDtMethod:ifHasMethodTag>
>
<XDtMerge:merge
file="xdoclet/modules/hibernate/resources/hibernate-collections.xdt">
</XDtMerge:merge>
@@ -130,6 +137,13 @@
<XDtMethod:ifHasMethodTag tagName="hibernate.bag" paramName="where">
where="<XDtMethod:methodTagValue tagName="hibernate.bag"
paramName="where" />"
</XDtMethod:ifHasMethodTag>
+ <XDtMethod:ifHasMethodTag tagName="hibernate.bag" paramName="outer-join">
+ outer-join="<XDtMethod:methodTagValue tagName="hibernate.bag"
paramName="outer-join" values="true,false,auto" default="auto"/>"
+ </XDtMethod:ifHasMethodTag>
+ access="<XDtMethod:methodTagValue tagName="hibernate.bag"
paramName="access" values="field,property,Class" default="property"/>"
+ <XDtMethod:ifHasMethodTag tagName="hibernate.bag" paramName="batch-size">
+ batch-size="<XDtMethod:methodTagValue tagName="hibernate.bag"
paramName="batch-size" default="1"/>"
+ </XDtMethod:ifHasMethodTag>
>
<XDtMerge:merge
file="xdoclet/modules/hibernate/resources/hibernate-collections.xdt">
</XDtMerge:merge>
@@ -153,6 +167,13 @@
<XDtMethod:ifHasMethodTag tagName="hibernate.list" paramName="where">
where="<XDtMethod:methodTagValue tagName="hibernate.list"
paramName="where" />"
</XDtMethod:ifHasMethodTag>
+ <XDtMethod:ifHasMethodTag tagName="hibernate.list" paramName="outer-join">
+ outer-join="<XDtMethod:methodTagValue tagName="hibernate.list"
paramName="outer-join" values="true,false,auto" default="auto"/>"
+ </XDtMethod:ifHasMethodTag>
+ access="<XDtMethod:methodTagValue tagName="hibernate.list"
paramName="access" values="field,property,Class" default="property"/>"
+ <XDtMethod:ifHasMethodTag tagName="hibernate.list" paramName="batch-size">
+ batch-size="<XDtMethod:methodTagValue tagName="hibernate.list"
paramName="batch-size" default="1"/>"
+ </XDtMethod:ifHasMethodTag>
>
<XDtMerge:merge
file="xdoclet/modules/hibernate/resources/hibernate-collections.xdt">
</XDtMerge:merge>
@@ -180,6 +201,13 @@
<XDtMethod:ifHasMethodTag tagName="hibernate.map" paramName="where">
where="<XDtMethod:methodTagValue tagName="hibernate.map"
paramName="where" />"
</XDtMethod:ifHasMethodTag>
+ <XDtMethod:ifHasMethodTag tagName="hibernate.map" paramName="outer-join">
+ outer-join="<XDtMethod:methodTagValue tagName="hibernate.map"
paramName="outer-join" values="true,false,auto" default="auto"/>"
+ </XDtMethod:ifHasMethodTag>
+ access="<XDtMethod:methodTagValue tagName="hibernate.map"
paramName="access" values="field,property,Class" default="property"/>"
+ <XDtMethod:ifHasMethodTag tagName="hibernate.map" paramName="batch-size">
+ batch-size="<XDtMethod:methodTagValue tagName="hibernate.map"
paramName="batch-size" default="1"/>"
+ </XDtMethod:ifHasMethodTag>
>
<XDtMerge:merge
file="xdoclet/modules/hibernate/resources/hibernate-collections.xdt">
</XDtMerge:merge>
@@ -205,6 +233,13 @@
<XDtMethod:ifHasMethodTag tagName="hibernate.array" paramName="where">
where="<XDtMethod:methodTagValue tagName="hibernate.array"
paramName="where" />"
</XDtMethod:ifHasMethodTag>
+ <XDtMethod:ifHasMethodTag tagName="hibernate.array" paramName="outer-join">
+ outer-join="<XDtMethod:methodTagValue tagName="hibernate.array"
paramName="outer-join" values="true,false,auto" default="auto"/>"
+ </XDtMethod:ifHasMethodTag>
+ access="<XDtMethod:methodTagValue tagName="hibernate.array"
paramName="access" values="field,property,Class" default="property"/>"
+ <XDtMethod:ifHasMethodTag tagName="hibernate.array" paramName="batch-size">
+ batch-size="<XDtMethod:methodTagValue tagName="hibernate.array"
paramName="batch-size" default="1"/>"
+ </XDtMethod:ifHasMethodTag>
>
<XDtMerge:merge
file="xdoclet/modules/hibernate/resources/hibernate-collections.xdt">
</XDtMerge:merge>
@@ -223,6 +258,13 @@
<XDtMethod:ifHasMethodTag tagName="hibernate.primitive-array"
paramName="where">
where="<XDtMethod:methodTagValue tagName="hibernate.primitive-array"
paramName="where" />"
</XDtMethod:ifHasMethodTag>
+ <XDtMethod:ifHasMethodTag tagName="hibernate.primitive-array"
paramName="outer-join">
+ outer-join="<XDtMethod:methodTagValue tagName="hibernate.primitive-array"
paramName="outer-join" values="true,false,auto" default="auto"/>"
+ </XDtMethod:ifHasMethodTag>
+ access="<XDtMethod:methodTagValue tagName="hibernate.primitive-array"
paramName="access" values="field,property,Class" default="property"/>"
+ <XDtMethod:ifHasMethodTag tagName="hibernate.primitive-array"
paramName="batch-size">
+ batch-size="<XDtMethod:methodTagValue tagName="hibernate.primitive-array"
paramName="batch-size" default="1"/>"
+ </XDtMethod:ifHasMethodTag>
>
<XDtMerge:merge
file="xdoclet/modules/hibernate/resources/hibernate-collections.xdt">
</XDtMerge:merge>
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1101?page=comments#action_15036
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1101
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1101
Summary: No support for hibernate.set, map, list, bag, or primitive-array
Type: Bug
Status: Open
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
Hibernate Module
Versions:
1.2.2
Assignee: xdoclet-devel (Use for new issues)
Reporter: Mike Youngstrom
Created: Wed, 6 Oct 2004 1:17 PM
Updated: Wed, 6 Oct 2004 6:39 PM
Description:
The Hibernate module is missing support for the "outer-join" attribute in the
following property types:
<set>, <list>, <map>, <bag>, <array> and <primitive-array>.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel