The GitHub Actions job "Groovy Snapshot Canary Build" on 
grails-core.git/fix/h7-multiple-hasmany-8.0.x has succeeded.
Run started by GitHub user borinquenkid (triggered by borinquenkid).

Head commit for run:
173e8a3147703504d9b8549dac866709872e77a1 / Walter Duque de Estrada 
<[email protected]>
fix(hibernate7): keep the key of a unidirectional hasMany updatable unless it 
shares a join table

CollectionKeyColumnUpdater marked the key of every entity collection 
non-updatable when
the owner had two or more unidirectional to-many properties, which was the 
workaround for
issue 10811 (two hasMany to the same class share one join table, so each key 
column must
be nullable). Hibernate writes no join table rows for a collection whose key is 
not
updatable, so addTo on an owner such as `static hasMany = [roles: Role, tags: 
Tag]` was
silently discarded on flush.

The key is now non-updatable only when another unidirectional to-many property 
of the
owner uses the same collection table. Collections with join tables of their own 
keep an
updatable key.

Fixes #16665

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

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

With regards,
GitHub Actions via GitBox

Reply via email to