The GitHub Actions job "CI - Groovy Joint Validation Build" on 
grails-core.git/fix/enum-hasmany-ddl-16051 has failed.
Run started by GitHub user borinquenkid (triggered by borinquenkid).

Head commit for run:
98a1acf30ba59588b5a228ea10864592ef03d868 / Walter Duque de Estrada 
<[email protected]>
Fix DDL failure for hasMany collections of enums

HibernateBasicProperty.getTable() always resolved to the owning
entity's table instead of the collection's join table, so the enum
element column for a hasMany-of-enum property was bound to the wrong
table: it appeared (wrongly) on the owner and was missing from the
join table's own CREATE TABLE, breaking schema generation. Separately,
HibernateToManyProperty.joinTableColumName() derived the column name
from the enum's fully-qualified class name instead of its simple name.

Also introduces HibernateBasicEnumProperty so hasMany-of-enum elements
are recognized as HibernateEnumProperty like their singular
counterparts, collapsing EnumTypeBinder down to one bindEnumType()
entry point and letting each HibernateEnumProperty implementation
supply its own table, column name, nullability, and enum-storage
configuration instead of the binder branching on property shape.

Fixes #16051

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

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

With regards,
GitHub Actions via GitBox

Reply via email to