[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3337) Hibernate disregards @JoinTable when generating bulk UPDATE/DELETE for a self-joined entity
Alex Savitsky (JIRA)
noreply at atlassian.com
Fri Jun 6 14:59:32 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30353 ]
Alex Savitsky commented on HHH-3337:
------------------------------------
Yes, and the original JPA query (it's in the ElementMapping class) is
DELETE FROM ElementMapping em
WHERE NOT EXISTS (FROM HeaderMapping hm WHERE em.unit.topHead = hm.unit AND em.element.header = hm.header)
> Hibernate disregards @JoinTable when generating bulk UPDATE/DELETE for a self-joined entity
> -------------------------------------------------------------------------------------------
>
> Key: HHH-3337
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3337
> Project: Hibernate3
> Issue Type: Bug
> Affects Versions: 3.2.6
> Reporter: Alex Savitsky
> Attachments: TestHB.zip
>
>
> When an entity is joined into itself using a join table, the generated SQL for an UPDATE/DELETE doesn't include this join table.
--
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list