borinquenkid commented on PR #16701:
URL: https://github.com/apache/grails-core/pull/16701#issuecomment-6417379723

   Stacked on the upstream fix for apache/grails-core#16691 (PR #16757):
   
   - Removing one element of a set on a join table deleted every row of the 
association for the owner because Hibernate 7 restricts row deletion by the key 
and only non-nullable element columns (and GORM join-table element columns are 
nullable).
   - That behavior was upstream in Hibernate 7's row delete mechanics across 
all join table sets (shared or unshared).
   - PR #16757 introduced `JoinTableCollectionPersister` and 
`GormPersisterClassResolver` to restrict deletion by the key and element column.
   - With PR #16757 merged into this branch, the three removal features in 
`SharedJoinTableBulkDeleteSpec` are unpended and verified.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to