openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Ezzio (JIRA)" <j...@apache.org>
Subject [jira] Updated: (OPENJPA-89) Bulk delete fails to delete owned many-to-many relationship (entry remains in join table)
Date Thu, 14 Dec 2006 16:36:23 GMT
     [ http://issues.apache.org/jira/browse/OPENJPA-89?page=all ]

David Ezzio updated OPENJPA-89:
-------------------------------

    Attachment: BugOJPA-89.zip

Test case for deleting entities that own *-to-many relationships mapped with join tables.
 One test of ten fails, showing reported bug.

> Bulk delete fails to delete owned many-to-many relationship (entry remains in join table)
> -----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-89
>                 URL: http://issues.apache.org/jira/browse/OPENJPA-89
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>         Environment: Using Apache Derby (10.2.1.6)
>            Reporter: David Ezzio
>         Attachments: BugOJPA-89.zip
>
>
> When executing the statement 
> em.createQuery("delete from Subject").executeUpdate();
> where Subject is in a many-to-many relationship with Book, and Subject owns the relationship,
one expects that the corresponding entry in the SUBJECT_BOOK table would be deleted.  This
happens when bulk deleting one-to-many relationships that are mapped with a join table, as
well as for *-to-one relationships mapped with a foreign key.  It also happens when individually
deleting objects.  However, it does not happen when bulk deleting the owning side of a many-to-many
relationship.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message