This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a change to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
from ef9fec7929 [skip tests] ci: run the MongoDB functional tests on
ubuntu-22.04 until the runner kernel stops tripping MongoDB 8.0's startup guard
add 14eaf0ce23 Run without a tenant only inside Tenants.withoutId
new d1db00ec21 Merge pull request #16703 from
apache/fix/gorm-without-tenant-marker-7.0.x
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:
.../orm/hibernate/AbstractHibernateDatastore.java | 103 ++++++-
.../AbstractHibernateGormStaticApi.groovy | 5 +
.../grails/orm/hibernate/HibernateDatastore.java | 17 ++
.../orm/hibernate/cfg/GrailsDomainBinder.java | 10 +-
.../MultiTenantCollectionEventListener.java | 60 ++++
.../multitenancy/MultiTenantEventListener.java | 15 +-
.../query/AbstractHibernateCriteriaBuilder.java | 8 +-
.../PartitionedMultiTenancyFilterSpec.groovy | 322 +++++++++++++++++++++
...PartitionedMultiTenancyResolverQuerySpec.groovy | 180 ++++++++++++
.../PartitionedMultiTenancyWithoutIdSpec.groovy | 230 +++++++++++++++
.../multiTenancy/discriminatorMultiTenancy.adoc | 17 ++
.../asciidoc/multiTenancy/multiTenancyModes.adoc | 2 +
.../PartitionedMultiTenancyNullTenantSpec.groovy | 100 +++++++
.../PartitionedMultiTenancyWithoutIdSpec.groovy | 189 ++++++++++++
.../groovy/grails/gorm/multitenancy/Tenants.groovy | 173 +++++++----
.../multitenancy/MultiTenantEventListener.java | 3 +-
.../gorm/services/DefaultTenantService.groovy | 2 +-
.../src/en/guide/upgrading/upgrading60x.adoc | 13 +
18 files changed, 1365 insertions(+), 84 deletions(-)
create mode 100644
grails-data-hibernate5/core/src/main/groovy/org/grails/orm/hibernate/multitenancy/MultiTenantCollectionEventListener.java
create mode 100644
grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/connections/PartitionedMultiTenancyFilterSpec.groovy
create mode 100644
grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/connections/PartitionedMultiTenancyResolverQuerySpec.groovy
create mode 100644
grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/connections/PartitionedMultiTenancyWithoutIdSpec.groovy
create mode 100644
grails-datamapping-core-test/src/test/groovy/grails/gorm/multitenancy/nulltenant/PartitionedMultiTenancyNullTenantSpec.groovy
create mode 100644
grails-datamapping-core-test/src/test/groovy/grails/gorm/multitenancy/withoutid/PartitionedMultiTenancyWithoutIdSpec.groovy