[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-695?page=co...
]
Aftab commented on HHH-695:
---------------------------
Hibernate does generate ON DELETE CASCADE dll by adding following line into to HBM file
<key on-delete="cascade" >
<column name="<YOUR FOREIGN KEY column>"
precision="22" scale="0" />
</key>
Therefore CASCADE delete works with HQL.
Ability to specify cascading in HQL delete
------------------------------------------
Key: HHH-695
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-695
Project: Hibernate3
Issue Type: New Feature
Components: query-hql
Reporter: Steve Ebersole
Assignee: Steve Ebersole
Add the ability to cascade HQL deletes.
Something like:
delete Person p cascade p.addresses
Obviously, this is better handled as in-DB cascade delete constraints, but for
completeness...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira