[jira] Closed: (XDP-141) comment element is generated in an invalid place from a hibernate.set tag

"Konstantin Pribluda (JIRA)" <jira-yCVjj/[email protected]>
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <51808996.1160378786831.JavaMail.haus-jira@codehaus01.managed.contegix.com>
     [ http://jira.codehaus.org/browse/XDP-141?page=all ]

Konstantin Pribluda closed XDP-141.
-----------------------------------


> comment element is generated in an invalid place from a hibernate.set tag
> -------------------------------------------------------------------------
>
>                 Key: XDP-141
>                 URL: http://jira.codehaus.org/browse/XDP-141
>             Project: XDoclet 2 Plugins
>          Issue Type: Bug
>          Components: hibernate
>         Environment: Windows XP, JDK 1.4.2, Ant 1.6, Hibernate 3.0, ; probably does not matter
>            Reporter: Piotr Burdylo
>             Fix For: 1.0.4
>
>         Attachments: example.zip
>
>
> A bad hbk document generates from following set description:
>    * @hibernate.set
>    *     table="B_SET"
>    *     optimistic-lock="true"
>    *     outer-join="true"
>    *     comment="big set of longs"
> The problem is the comment element in set element. Fragment of hbk file looks like:
> <set outer-join="true" table="B_SET" optimistic-lock="true" name="longSet" sort="unsorted" inverse="false" mutable="true" embed-xml="true">
>   <key column="A_ID" on-delete="noaction" /> 
>   <element type="java.lang.Long" column="LONG_ID" not-null="false" unique="false" /> 
>   <comment>big set of longs</comment> 
> </set>
> Then the HibernateMappingPlugin says:
>    Message: The content of element type "set" must match "(meta*,subselect?,cach
> e?,synchronize*,comment?,key,(element|one-to-many|many-to-many|composite-element
> |many-to-any),loader?,sql-insert?,sql-update?,sql-delete?,sql-delete-all?,filter
> *)".
> And the thing that looks bad here is where the 'comment' element is located, which should be before 'key' element. And it is generated as the last one.
> This bug can affect other collection tags, but I've not checked that.
> There is a simple project attached which shows what's going on. Simply run 'ant' and it will fail showing you the message.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
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.