This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a change to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
from eaa0af6867 Merge pull request #16136 from apache/fix/issue-16133
add 98a1acf30b Fix DDL failure for hasMany collections of enums
add 5e05828651 Fix hasMany-of-enum cascade regression and self-encapsulate
to-many cascade rules
add 607ae4e64c Strengthen EnumHasManyDdlSpec assertions and coverage
add c7f4f4e5c8 Replace indirect GrailsPropertyBinder guard with
self-encapsulation
add 70f875107e Close a real branch-coverage gap for HibernateCustomProperty
add a598d287a4 Address round-2 review: scope getTable override, restore
log, harden specs
new deac428c1e Merge pull request #16052 from
apache/fix/enum-hasmany-ddl-16051
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../cfg/domainbinding/binder/EnumTypeBinder.java | 59 +----
.../domainbinding/binder/GrailsPropertyBinder.java | 6 +-
.../cfg/domainbinding/binder/PropertyBinder.java | 8 +-
.../hibernate/HibernateBasicEnumProperty.java | 80 +++++++
.../hibernate/HibernateEnumProperty.java | 47 +++-
.../hibernate/HibernateMappingFactory.groovy | 7 +-
.../hibernate/HibernateToManyProperty.java | 45 +++-
.../secondpass/BasicCollectionElementBinder.java | 9 +-
.../domainbinding/util/CascadeBehaviorFetcher.java | 25 +--
.../cfg/domainbinding/util/GrailsEnumType.java | 40 +++-
.../domainbinding/util/TableForManyCalculator.java | 5 +-
.../grails/gorm/tests/EnumHasManyDdlSpec.groovy | 248 +++++++++++++++++++++
.../gorm/tests/HibernateMappingFactorySpec.groovy | 7 +-
.../cfg/domainbinding/EnumTypeBinderSpec.groovy | 5 +-
.../domainbinding/GrailsPropertyBinderSpec.groovy | 68 ++++++
.../cfg/domainbinding/PropertyBinderSpec.groovy | 28 ++-
.../TableForManyCalculatorSpec.groovy | 25 +++
.../hibernate/HibernateBasicPropertySpec.groovy | 40 +++-
.../hibernate/HibernateToManyPropertySpec.groovy | 4 +-
.../BasicCollectionElementBinderSpec.groovy | 11 +-
20 files changed, 662 insertions(+), 105 deletions(-)
create mode 100644
grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/hibernate/HibernateBasicEnumProperty.java
create mode 100644
grails-data-hibernate7/core/src/test/groovy/grails/gorm/tests/EnumHasManyDdlSpec.groovy