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 Type: Bug Environment: Windows XP, JDK 1.4.2, Ant 1.6, Hibernate 3.0, ; probably does not matter Reporter: Piotr Burdylo 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 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ xdoclet-plugins-interest mailing list xdoclet-plugins-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-interest