Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: b2e69655779a00ff3f4205fbed7b0ca171419cf2
https://github.com/hibernate/hibernate-orm/commit/b2e69655779a00ff3f4205f...
Author: gavin <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/multitenancy/MultiTenancy.adoc
M
documentation/src/test/java/org/hibernate/userguide/multitenancy/AbstractMultiTenancyTest.java
M
documentation/src/test/java/org/hibernate/userguide/multitenancy/DatabaseMultiTenancyTest.java
M
documentation/src/test/java/org/hibernate/userguide/multitenancy/DatabaseTimeZoneMultiTenancyTest.java
M
documentation/src/test/java/org/hibernate/userguide/multitenancy/SchemaMultiTenancyTest.java
R hibernate-core/src/main/java/org/hibernate/MultiTenancyStrategy.java
M hibernate-core/src/main/java/org/hibernate/boot/SessionFactoryBuilder.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M
hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryBuilderImpl.java
M
hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsBuilder.java
M
hibernate-core/src/main/java/org/hibernate/boot/spi/AbstractDelegatingMetadataBuildingOptions.java
M
hibernate-core/src/main/java/org/hibernate/boot/spi/AbstractDelegatingSessionFactoryBuilder.java
M
hibernate-core/src/main/java/org/hibernate/boot/spi/AbstractDelegatingSessionFactoryOptions.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/MetadataBuildingOptions.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/SessionFactoryOptions.java
M hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
M hibernate-core/src/main/java/org/hibernate/cfg/Settings.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/ConnectionProviderInitiator.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/MultiTenantConnectionProviderInitiator.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentInitiator.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcServicesImpl.java
M
hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/internal/FastSessionServices.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
Log Message:
-----------
remove MultiTenancyStrategy
Use the existence of a MultiTenantConnectionProvider to infer that multitenancy is
enabled.
Commit: 505bea6ffdc427dc74f6d51aa48df7b7916cbd7f
https://github.com/hibernate/hibernate-orm/commit/505bea6ffdc427dc74f6d51...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/annotations/TenantId.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/EntityBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
M
hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
A hibernate-core/src/main/java/org/hibernate/tuple/TenantIdGeneration.java
A hibernate-core/src/test/java/org/hibernate/test/tenantid/Account.java
A hibernate-core/src/test/java/org/hibernate/test/tenantid/TenantIdTest.java
Log Message:
-----------
HHH-6054 support for discriminator-based multitenancy
added the @TenantId annotation
also allow @TenantId @Formula
Commit: 6f0676cf9676130247ea564b70f68aa76e7d828d
https://github.com/hibernate/hibernate-orm/commit/6f0676cf9676130247ea564...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/multitenancy/MultiTenancy.adoc
Log Message:
-----------
HHH-6054 add docs for @TenantId
Commit: 8af548b52d3cfbe438799f11665f035694f0e4dd
https://github.com/hibernate/hibernate-orm/commit/8af548b52d3cfbe438799f1...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
M
hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/tuple/AnnotationValueGeneration.java
M hibernate-core/src/main/java/org/hibernate/tuple/TenantIdGeneration.java
M hibernate-core/src/main/java/org/hibernate/tuple/ValueGenerator.java
M hibernate-core/src/test/java/org/hibernate/test/tenantid/TenantIdTest.java
Log Message:
-----------
HHH-6054 allow ValueGenerator to inspect current value of property
use this to throw exception from TenantIdGeneration
Commit: ea0dd35362e1b35c07d286b6a88a4f119354c80f
https://github.com/hibernate/hibernate-orm/commit/ea0dd35362e1b35c07d286b...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
M hibernate-core/src/test/java/org/hibernate/test/tenantid/Account.java
A hibernate-core/src/test/java/org/hibernate/test/tenantid/Client.java
M hibernate-core/src/test/java/org/hibernate/test/tenantid/TenantIdTest.java
Log Message:
-----------
HHH-6054 improve error checking
Commit: 5837a60e71e1590e971f640d16c134e53833f034
https://github.com/hibernate/hibernate-orm/commit/5837a60e71e1590e971f640...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/annotations/AttributeBinderType.java
M hibernate-core/src/main/java/org/hibernate/annotations/TenantId.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-core/src/main/java/org/hibernate/mapping/Property.java
A hibernate-core/src/main/java/org/hibernate/tuple/AttributeBinder.java
A hibernate-core/src/main/java/org/hibernate/tuple/TenantIdBinder.java
M hibernate-core/src/main/java/org/hibernate/tuple/TenantIdGeneration.java
M hibernate-core/src/test/java/org/hibernate/test/tenantid/Account.java
M hibernate-core/src/test/java/org/hibernate/test/tenantid/TenantIdTest.java
Log Message:
-----------
HHH-6054 introduce AttributeBinder and @AttributeBinderType
and introduce TenantIdBinder on top of this stuff
also make @TenantId imply non-null, immutable
Commit: 2a2bf17f8f75a7f315893b51263f19378846ca21
https://github.com/hibernate/hibernate-orm/commit/2a2bf17f8f75a7f315893b5...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/AttributeAccessor.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
A hibernate-core/src/main/java/org/hibernate/tuple/AttributeAccessorBinder.java
M hibernate-core/src/main/java/org/hibernate/tuple/TenantIdBinder.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/bootstrap/binding/annotations/access/AttributeAccessorTest.java
M
hibernate-envers/src/test/java/org/hibernate/orm/test/envers/integration/accesstype/AttributeAccessorTest.java
Log Message:
-----------
redefine AttributeAccessor in terms of the new AttributeBinder API
Commit: 341eb413f06eca88e91bd17703c09395ec2ade8e
https://github.com/hibernate/hibernate-orm/commit/341eb413f06eca88e91bd17...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
Log Message:
-----------
clean up PropertyBinder a bit
Commit: 47d0b1265fdebbaccc1f0eb5d863b48a8b9f2b2b
https://github.com/hibernate/hibernate-orm/commit/47d0b1265fdebbaccc1f0eb...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/test/tenantid/TenantIdTest.java
Log Message:
-----------
improve the test for tenant ids
Commit: 8f7e0c4c2fdcd36b1a0e9e3f0131442f0891dae6
https://github.com/hibernate/hibernate-orm/commit/8f7e0c4c2fdcd36b1a0e9e3...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/context/spi/CurrentTenantIdentifierResolver.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-core/src/main/java/org/hibernate/tuple/TenantIdGeneration.java
Log Message:
-----------
HHH-6054 introduce notion of a "root" tenant
Commit: 6d43d62a5a0c8863b62ab5709c2171251f81702d
https://github.com/hibernate/hibernate-orm/commit/6d43d62a5a0c8863b62ab57...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M
hibernate-core/src/test/java/org/hibernate/orm/test/multitenancy/ConfigurationValidationTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/multitenancy/discriminator/DiscriminatorMultiTenancyTest.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/multitenancy/schema/AbstractSchemaBasedMultiTenancyTest.java
M hibernate-core/src/test/java/org/hibernate/test/tenantid/Account.java
M hibernate-core/src/test/java/org/hibernate/test/tenantid/Client.java
Log Message:
-----------
fix test fallout from rebase
update test to jakarta package name
and refix moved tests
Commit: 13983e1449e65c11c4cc651c3f95eb5dfd34b09b
https://github.com/hibernate/hibernate-orm/commit/13983e1449e65c11c4cc651...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M
hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsBuilder.java
M
hibernate-core/src/main/java/org/hibernate/engine/jdbc/internal/JdbcServicesImpl.java
M
hibernate-core/src/test/java/org/hibernate/orm/test/multitenancy/schema/AbstractSchemaBasedMultiTenancyTest.java
Log Message:
-----------
detect the MultiTenantConnectionProvider when registered as a service
instead of looking at the property
Commit: ce3644e81dd911f0f608dc931c16dd8d81879605
https://github.com/hibernate/hibernate-orm/commit/ce3644e81dd911f0f608dc9...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/AttributeBinderType.java
Log Message:
-----------
add a wildcard to generic type
and slightly improve javadoc
Commit: 365aa58254177b2df092658a7b6c36f3a6cebbcd
https://github.com/hibernate/hibernate-orm/commit/365aa58254177b2df092658...
Author: Gavin King <gavin(a)hibernate.org>
Date: 2021-12-08 (Wed, 08 Dec 2021)
Changed paths:
M documentation/src/main/asciidoc/userguide/appendices/Annotations.adoc
Log Message:
-----------
add two new annotations to the list in Annotations.adoc
Compare:
https://github.com/hibernate/hibernate-orm/compare/915da5228d8e...365aa58...