I'm using Hibernate 2.0.3 and XDoclet to define mapping files; I have a one-to-many bidirectional association (a strict parent-child relationship) and wanted to mark the cascade attribute as "all-delete-orphan". If I understand well, marking it this way should cause Hibernate to delete the child object by just removing it from the parent. This option appears in the Hibernate doc, and in the hibernate-mapping dtd file, but Xdoclet throws an exception saying it is not allowed.
One solution is of course to use merge-files, but the relationship in question is in a nested subclass, so I should put in the merge file an entire class hierarchy !!! (this is another xdoclet problem ...)
I hope I have been clear.
Thanks everyone
Renato
|