Gavin King
2a2bf17f8f
redefine AttributeAccessor in terms of the new AttributeBinder API
2021-12-08 08:44:09 -05:00
Gavin King
5837a60e71
HHH-6054 introduce AttributeBinder and @AttributeBinderType
...
and introduce TenantIdBinder on top of this stuff
also make @TenantId imply non-null, immutable
2021-12-08 08:44:09 -05:00
Gavin King
ea0dd35362
HHH-6054 improve error checking
2021-12-08 08:44:09 -05:00
Gavin King
8af548b52d
HHH-6054 allow ValueGenerator to inspect current value of property
...
use this to throw exception from TenantIdGeneration
2021-12-08 08:44:09 -05:00
Gavin King
6f0676cf96
HHH-6054 add docs for @TenantId
2021-12-08 08:44:09 -05:00
Gavin King
505bea6ffd
HHH-6054 support for discriminator-based multitenancy
...
added the @TenantId annotation
also allow @TenantId @Formula
2021-12-08 08:44:09 -05:00
gavin
b2e6965577
remove MultiTenancyStrategy
...
Use the existence of a MultiTenantConnectionProvider to infer that multitenancy is enabled.
2021-12-08 08:44:09 -05:00
Steve Ebersole
915da5228d
HHH-14497 - Drop legacy id-generator settings;
...
HHH-14718 - Drop deprecated generator implementations
2021-12-07 11:12:44 -06:00
Andrea Boriero
189bc54dbd
Fix EntityEntry loaded state for persistent arrays
2021-12-07 16:30:57 +01:00
Christian Beikov
6c4ec95182
* Cleanup temporary table handling in dialects
...
* Fix insert handling with respect to version, discriminator and generated identifier insertion
* Introduce SqmMultiTableInsertStrategy to handle multi-table inserts
* Introduce the notion of an "entity table" similar to the "id table" to handle multi-table insertions
* Implement table based and cte based multi-table insertion to support all dialects
* Implement identifier generator optimizer support for multi-table insert
* Fix validation of insert target paths against select item types
* Fix some DML validations
* Implement over-clause support in SQL AST
* Fix multi-valued filter parameter support
2021-12-07 15:54:01 +01:00
Andrea Boriero
c959c7656c
Fix IdentifiableType#getId(Class<Y> type) failing for primitive types
2021-12-07 12:49:10 +01:00
Yoann Rodière
37d3b66ce4
HHH-14922 Give precedence to default catalog/schema over implicit catalog/schema
2021-12-07 08:25:50 +01:00
Yoann Rodière
30e3aa4e7f
HHH-14922 Delay applying the implicit catalog/schema until schema management tool or session factory creation
...
This is necessary if we want the default catalog/schema to take
precedence, since the default catalog/schema is applied late,
on schema management tool or session factory creation.
2021-12-07 08:25:50 +01:00
Yoann Rodière
8f1d1c43ce
HHH-14922 Test behavior when setting both implicit catalog/schema and default catalog/schema
2021-12-07 08:25:50 +01:00
Yoann Rodière
aafacbec47
HHH-14921 Test handling of default catalog and schema when not configured during metadata creation
2021-12-07 08:25:50 +01:00
Yoann Rodière
944c90061a
HHH-14921 Test handling of default catalog and schema
2021-12-07 08:25:50 +01:00
Yoann Rodière
4d5306a82d
HHH-14921 Delay determination of the default catalog/schema until schema management tool or session factory creation
2021-12-07 08:25:50 +01:00
Yoann Rodière
495bd51caa
HHH-14921 Always use SqlStringGenerationContext for generation of SQL strings involving table/sequence names
2021-12-07 08:25:50 +01:00
Yoann Rodière
b6f833441a
HHH-14921 Delay generation of SQL strings by identifier generators until schema export or session factory creation
2021-12-07 08:25:50 +01:00
Yoann Rodière
0c644fa16d
HHH-14921 Remove unused method PersistentIdentifierGenerator#generatorKey
2021-12-07 08:25:50 +01:00
Yoann Rodière
16524e2f67
HHH-14921 Remove a few unused SQL generation methods in identifier generators
...
They are getting in the way of changes related to the default schema
2021-12-07 08:25:50 +01:00
Yoann Rodière
cc13379c77
HHH-14921 Clarify that org.hibernate.mapping.AuxiliaryDatabaseObject has been replaced with org.hibernate.boot.model.relational.AuxiliaryDatabaseObject
2021-12-07 08:25:50 +01:00
Yoann Rodière
012bcd1cfb
HHH-14921 Clarify the ability of IdentifierGenerator to be configured and to register exportables
2021-12-07 08:25:50 +01:00
Christian Beikov
05d536d345
Polishing: fix wrong variable name
2021-12-06 20:29:59 +01:00
Christian Beikov
e1a976bce0
HHH-14211 Switch to using oid for CLOB in PostgreSQL to avoid losing data after vacuumlo
2021-12-06 20:27:55 +01:00
Steve Ebersole
0f46ee2466
Tests for checking multiple execution of EmbeddableInitializers
2021-12-06 13:26:48 -06:00
Christian Beikov
44cb271030
Disable charset client handshake for MySQL and MariaDB
2021-12-06 20:17:10 +01:00
Steve Ebersole
099dd55b94
Tests for checking multiple execution of EmbeddableInitializers
2021-12-06 12:30:10 -06:00
Christian Beikov
7d30b57f15
Get rid of wip/6.0 mention
2021-12-06 18:56:13 +01:00
Andrea Boriero
07155b7993
Merge remote-tracking branch 'upstream/main' into wip/6.0
2021-12-06 17:56:17 +01:00
Andrea Boriero
acc870ea14
Merge branch 'wip/6.0' of https://github.com/hibernate/hibernate-orm into wip/6.0
2021-12-06 17:46:12 +01:00
Andrea Boriero
74a395d744
Merge branch 'main' into wip/6.0
2021-12-06 17:39:07 +01:00
Neon Ngo
fa8b78d345
HHH-14956 Fix link to MetadataBuilderContributor javadocs
...
- Under Appendix > Configurations > Bootstrap properties
- hibernate.metadata_builder_contributor
2021-12-06 16:33:09 +00:00
Sanne Grinovero
b8046d1a80
HHH-14938 Upgrade to MySQL Connector/J 8.0.27
2021-12-06 16:30:47 +00:00
Sanne Grinovero
6ecc19b64f
Build: No longer needing gradle-karaf-plugin
2021-12-06 16:28:52 +00:00
Sanne Grinovero
dc533b65cd
Build: Upgrade Forbidden APIs to 3.2
2021-12-06 16:28:52 +00:00
Christian Beikov
bab32c3100
Small cleanup and add migration guide sections
2021-12-06 17:21:25 +01:00
Steve Ebersole
9028adc30e
Clean up test logging (hibernate-core)
2021-12-06 10:12:25 -06:00
Christian Beikov
2d871d64f2
HHH-14897 Allow ordering with nulls first/last in JPA Criteria
2021-12-06 16:49:20 +01:00
Andrea Boriero
7dc70e9350
Fix ToOneAttributeMapping bidirectionalAttributeName value determination
2021-12-06 16:43:44 +01:00
Fabio Massimo Ercoli
71204a9e97
Test load contained in double containing
2021-12-06 16:43:44 +01:00
Steve Ebersole
087d486d6b
Tests for debugging potential multiple calls to EmbeddableInstantiators
2021-12-04 13:53:10 -06:00
Steve Ebersole
9287b97cd3
HHH-14949 - Support @Access on @ElementCollection (for embeddable elements)
...
Fix
2021-12-03 15:32:13 -06:00
Steve Ebersole
86799d6c28
HHH-14949 - Support @Access on @ElementCollection (for embeddable elements)
...
Test
2021-12-03 15:32:13 -06:00
Andrea Boriero
2d064974fd
Merge remote-tracking branch 'upstream/main' into wip/6.0_merge_main
2021-12-03 09:14:46 +01:00
Steve Ebersole
c190d37a57
initial work on DialectVersionDetails.isAfterDatabaseVersion
2021-12-02 21:36:52 -06:00
Steve Ebersole
1c96f30edb
Post-steps for release : `6.0.0.Beta2`
2021-12-02 18:12:34 -06:00
Steve Ebersole
6dd8936ba5
Pre-steps for release : `6.0.0.Beta2`
2021-12-02 16:51:49 -06:00
Steve Ebersole
9367561fe4
6.0 Beta2
2021-12-02 16:46:09 -06:00
Steve Ebersole
629ae9ac69
6.0 Beta2
2021-12-02 16:27:03 -06:00