[XDoclet-JIRA] Commented: (XDT-1532) hibernate.set tags not moved to hbm.xml files except table tag

"Krzysztof Wlasiuk (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
    [ http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1532?page=comments#action_17266 ] 

Krzysztof Wlasiuk commented on XDT-1532:
----------------------------------------

After some research I figure, that  some tags (ie cascade, batch-size, inverse) are ignored and every one tag after them are not included in output
If  we wrote :
    /**
     * @hibernate.set
     *  lazy="true"
     *  order-by="nazwa asc"
     *  outer-join="false"
     *  cascade="delete"
     *  batch-size="50"
     *  inverse="true"
     *  
     * @hibernate.collection-key column="nadrz_id"
     * @hibernate.collection-one-to-many
     */

Then the output is much better :
        <set
            name="podrzedne"
            lazy="true"
            cascade="none"
            sort="unsorted"
            order-by="nazwa asc"
            outer-join="false"
        >
            <key column="nadrz_id" >
            </key>
            <one-to-many                  class=""            />
        </set>

> hibernate.set tags not moved to hbm.xml files except table tag
> --------------------------------------------------------------
>
>          Key: XDT-1532
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1532
>      Project: XDoclet
>         Type: Bug
>   Components: Hibernate Module
>     Versions: 1.2.2, 1.2.3
>  Environment: WinXP ant 1.6.5, Xdoclet 1.2.3, 1.2.2, Java 1.4
>     Reporter: Krzysztof Wlasiuk
>     Assignee: xdoclet-devel (Use for new issues)

>
>
>   /**
>     * @hibernate.set 
>     * table="zzz" 
>     * lazy="true" 
>     * cascade="save-update" 
>     * outer-join="false"
>     * batch-size="50"
>     * order-by="nazwa asc"
>     * inverse="true" 
>     * 
>     * @hibernate.collection-key  column="nadrz_id"
>     * 
>     * @hibernate.collection-one-to-many  class="pl.priv.kwt.soz.hibernate.Role"
>   */
> gives me :
>         <set
>             name="podrzedne"
>             table="zzz"
>             lazy="false"           
>             cascade="none"
>             sort="unsorted"
>         >
>             <key               column="nadrz_id"            >
>             </key>
>             <one-to-many
>                   class="pl.priv.kwt.soz.hibernate.Role"
>             />
>         </set>
> ant : 
>     <hibernatedoclet destdir="${generated.home}"
>                      excludedtags="@version,@author,@todo"
>                      force="${generated.forced}" mergedir="${generated.home}"
>                      verbose="true">
>       <fileset dir="${src.home}">
>         <include name="pl/priv/kwt/soz/hibernate/*.java"/>
>       </fileset>
>       <hibernate version="2.0"/>
>     </hibernatedoclet>

-- 
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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.