[ 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
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to