The GitHub Actions job "CI" on 
grails-core.git/fix/hibernate7-honour-insertable-updatable-8.0.x has failed.
Run started by GitHub user borinquenkid (triggered by borinquenkid).

Head commit for run:
d1043345089440712c360dd3cef25d49e087418d / Walter Duque de Estrada 
<[email protected]>
fix: honour insertable false and updatable false in the mapping

PropertyBinder set the property's insertable/updatable flags from the
PropertyConfig and then overwrote both with the flags of the value's columns,
which are always true, so a mapping with insertable: false or updatable: false
was ignored and the column was written anyway. The mapping's flags now combine
with the columns' (both must allow the write), so an explicit false is
honoured while a value without writable columns stays non-insertable. The
many-to-one side of a bidirectional list mapping keeps being decided by its
columns, as before.

Covered through the GORM API (a defaultValue column stays at the database
default on insert; an updatable: false column keeps its inserted value; both
failed before the fix) and by binder-level rows in PropertyBinderSpec.

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

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

With regards,
GitHub Actions via GitBox

Reply via email to