You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by GitBox <gi...@apache.org> on 2026/10/20 21:13:19 UTC

[GH] (grails-core/fix/hibernate5-many-to-many-warning-circular-map-7.0.x): Workflow run "CI - Groovy Joint Validation Build" failed!

The GitHub Actions job "CI - Groovy Joint Validation Build" on grails-core.git/fix/hibernate5-many-to-many-warning-circular-map-7.0.x has failed.
Run started by GitHub user borinquenkid (triggered by borinquenkid).

Head commit for run:
5fddfb85fa18fb836bcc0e30d24596add87a0f30 / Walter Duque de Estrada <wb...@mac.com>
fix(hibernate5): skip Map-valued many-to-manys in the no-owner warning, keep skipping circular ones

The no-owner many-to-many warning did not exclude Map-valued sides, whose second pass makes
them write the join table, so it claimed a stored relationship was not stored. It now skips a
relationship with a Map on either side, matching the Hibernate 7 module.

A circular many-to-many stays excluded: bindCollectionSecondPass makes every circular collection
non-inverse, so both properties write their own join table and the relationship is stored with or
without belongsTo. Declaring belongsTo there swaps the two join table names and breaks an existing
schema, so the warning would have led to a failure. The circular test now asserts that nothing is
warned and that both sides read back.

The guide shows the circular shape with an example class, says that a linked instance must be
removed from both sides before it is deleted, and warns against adding belongsTo to a mapping
that already works.

Co-Authored-By: Claude Fable 5.1 <no...@anthropic.com>

Report URL: https://github.com/apache/grails-core/actions/runs/39438642777

With regards,
GitHub Actions via GitBox