Maxim Solodovnik created OPENJPA-2990:
-----------------------------------------
Summary: Bulk delete no longer cleans join-table rows
Key: OPENJPA-2990
URL: https://issues.apache.org/jira/browse/OPENJPA-2990
Project: OpenJPA
Issue Type: Sub-task
Components: jpa
Affects Versions: 4.2.0
Reporter: Maxim Solodovnik
Fix For: 4.2.0
Discussion thread:
https://github.com/apache/openjpa/pull/144#discussion_r3683006632
**(high)** testSingleDelete/testBulkDelete were inverted from "addresses
deleted" to "addresses remain" citing spec 4.10 - but that clause has said bulk
delete does not cascade since JPA 1.0, so this is a deliberate break with
long-standing OpenJPA behavior rather than something new in 3.2. Also the
`assertSQL("DELETE FROM .*J_PERSON_ADDRESSES .*")` assertions were dropped
entirely: are the join-table rows still cleaned up, or do we now leave dangling
rows pointing at deleted pks (FK violation on constrained schemas)? Please keep
an assertion on the join-table state and consider a compatibility option plus
release note. Same change in TestBulkJPQLAndDataCache.java:122.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)