This is an automated email from the ASF dual-hosted git repository.
jdaugherty pushed a change to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
from 87d564de74 [skip tests] Merge branch '7.0.x' into 7.1.x
add 1978dab17d Restrict lookups by id to the current tenant
add 13304e6789 Convert ids and initialize withoutId proxies as the lookup
by key does
add 9d47b98435 Cover lookups by id of an entity mapped with a composite id
add 34c879e803 Return held instances of the current tenant from lookups by
id
add b36c2205f5 Stop SchemaBasedMultiTenancySpec from dropping the config
database
add e8d235330a Use the 8.0.x cleanup of SchemaBasedMultiTenancySpec
add 70743888e0 Tell withoutId apart from the tenant id DEFAULT
add 14eaf0ce23 Run without a tenant only inside Tenants.withoutId
add d1db00ec21 Merge pull request #16703 from
apache/fix/gorm-without-tenant-marker-7.0.x
add 89208a56bf Merge branch '7.0.x' into fix/multi-tenant-get-by-id
add 860f5dba9d Drop the isWithoutId feature that
PartitionedMultiTenancyWithoutIdSpec covers
add 0a22d3033f Merge pull request #16515 from
apache/fix/multi-tenant-get-by-id
add 555db8cbee [skip tests] Merge branch '7.0.x' into 7.1.x
No new revisions were added by this update.
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 +
.../connections/SchemaBasedMultiTenancySpec.groovy | 15 +-
.../MongoLookupByIdMultiTenancySpec.groovy | 348 +++++++++++++++++++
.../asciidoc/multiTenancy/multiTenancyModes.adoc | 12 +
.../PartitionedMultiTenancyNullTenantSpec.groovy | 100 ++++++
.../partitioned/PartitionedLookupByIdSpec.groovy | 367 +++++++++++++++++++++
.../PartitionedMultiTenancyWithoutIdSpec.groovy | 189 +++++++++++
.../groovy/grails/gorm/multitenancy/Tenants.groovy | 173 ++++++----
.../org/grails/datastore/gorm/GormStaticApi.groovy | 255 +++++++++++++-
.../multitenancy/MultiTenantEventListener.java | 3 +-
.../gorm/services/DefaultTenantService.groovy | 2 +-
.../src/en/guide/upgrading/upgrading60x.adoc | 22 ++
22 files changed, 2357 insertions(+), 96 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-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/multitenancy/MongoLookupByIdMultiTenancySpec.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/partitioned/PartitionedLookupByIdSpec.groovy
create mode 100644
grails-datamapping-core-test/src/test/groovy/grails/gorm/multitenancy/withoutid/PartitionedMultiTenancyWithoutIdSpec.groovy