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

   Resolved the row collision when collections share both foreign-key and 
element columns:
   
   - For lists and maps sharing join tables, `SharedJoinTableUniqueKeyBinder` 
restricts each collection using its index column (and unshared element columns, 
if any). This ensures that collections sharing foreign-key and element columns 
isolate their rows by their distinct index columns (`roles_idx is not null` vs 
`deny_roles_idx is not null`).
   - Loads, single-element removals, and bulk deletes now affect only the 
target collection's rows.
   - Added tests verifying element ordering, single-element removal, and 
list-clearing isolation when two lists share both key and element columns.
   - Updated documentation in the one-to-many chapter and the 8.0 upgrade guide.


-- 
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