[ http://jira.codehaus.org/browse/XDP-141?page=all ]

Konstantin Pribluda resolved XDP-141.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.4

Fixed in current CVS version. Comment is no longer parameter
but dedicated parameteress tag except columns

> 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

        

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
xdoclet-plugins-interest mailing list
xdoclet-plugins-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest

Reply via email to