[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3337?page=c...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira