This is an automated email from the ASF dual-hosted git repository.
borinquenkid pushed a change to branch
fix/hibernate7-composite-fk-column-types-8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
from 2d921e99dd fix: permute the columns of a composite identifier by part,
not by property
new 289e98ace8 test: reference a composite key whose multi-column part
sits between two plain parts
new 0b0be81a04 fix: sort a composite foreign key once the identifier it
references is bound
The 2 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:
.../CompositeIdentifierToManyToOneBinder.java | 91 ++++++++++++++-
.../domainbinding/binder/GrailsDomainBinder.java | 1 +
.../hibernate/GrailsHibernatePersistentEntity.java | 4 +-
.../secondpass/CompositeForeignKeySecondPass.java | 67 +++++++++++
.../util/PropertyFromValueCreator.java | 18 ++-
.../cfg/domainbinding/CollectionBinderSpec.groovy | 2 +-
...CompositeIdentifierToManyToOneBinderSpec.groovy | 83 ++++++++++++-
.../domainbinding/GrailsPropertyBinderSpec.groovy | 1 +
.../PropertyFromValueCreatorSpec.groovy | 32 ++++++
.../CompositeForeignKeyColumnTypesSpec.groovy | 77 +++++++------
...CompositeForeignKeyRegistrationOrderSpec.groovy | 128 +++++++++++++++++++++
.../domainbinding/binder/ForeignKeyPairs.groovy | 55 +++++++++
.../secondpass/CollectionKeyBinderSpec.groovy | 2 +-
.../secondpass/ListSecondPassBinderSpec.groovy | 2 +-
.../secondpass/MapSecondPassBinderSpec.groovy | 2 +-
15 files changed, 520 insertions(+), 45 deletions(-)
create mode 100644
grails-data-hibernate7/core/src/main/groovy/org/grails/orm/hibernate/cfg/domainbinding/secondpass/CompositeForeignKeySecondPass.java
create mode 100644
grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/binder/CompositeForeignKeyRegistrationOrderSpec.groovy
create mode 100644
grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/cfg/domainbinding/binder/ForeignKeyPairs.groovy