Commit Graph

873 Commits

Author SHA1 Message Date
Steve Ebersole 448d678fb5 Drop `@CollectionClassificationType`;
Drop `@CollectionSemantics`;
Drop `@CollectionSemanticsRegistration(s)`;
Add `@CollectionTypeRegistration(s)`;
Rename `@CustomType` to `@Type`;
User Guide and Migration Guide changes
2022-01-06 21:46:48 -06:00
Gavin King cc91beb536 typecheck HQL function arguments 2022-01-06 18:10:00 +01:00
Steve Ebersole 773f3429c6 hibernate.mapping.default_list_semantics (`AvailableSettings#DEFAULT_LIST_SEMANTICS`)
make LIST the default classification for List attributes with no `@OrderColumn`, etc.
2022-01-06 08:53:00 -06:00
Steve Ebersole a71ba9e385 Initial work to re-organize the Collections chapter in the UserGuide;
Docs for @CollectionType, @CollectionClassificationType and @CollectionSemantics;
Some api/spi/internal work;
Migration Guide;
2022-01-05 16:26:58 -06:00
Andrea Boriero 67f73f20ef Remove few NotYetImplementedFor6Exception 2021-12-23 21:33:01 +01:00
Christian Beikov 1184a5963b Re-add AvailableSettings.JPA_METAMODEL_GENERATION and re-enable metamodel tests 2021-12-23 10:01:07 +01:00
Christian Beikov 360fec82f1 Reset connection pool after changing system TZ. Don't use distinct predicate when comparing primary keys in envers 2021-12-21 18:46:46 +01:00
Chris Cranford 99c13e5965 HHH-11595 Introduce `CollectionAuditTable` support 2021-12-18 22:53:42 -05:00
Chris Cranford d9fa35c6f1 HHH-13361 Cleanup test 2021-12-18 20:46:10 -05:00
Chris Cranford aa5bdab6ec HHH-13361 Refactor mappers 2021-12-18 20:46:10 -05:00
Chris Cranford b5755b6945 HHH-13361 Allow auditing entities with nested identifiers 2021-12-18 20:46:10 -05:00
Christian Beikov fb30206387 Add emulation for simple lateral joins and make use of lateral joins for min/max index/element paths if possible 2021-12-18 05:12:36 -06:00
Christian Beikov b75277b421 Split TableReference class into interface and NamedTableReference implementation to allow QueryPartTableReference and ValuesTableReference to fit into the picture 2021-12-18 05:12:36 -06:00
Chris Cranford 98c9cf136c HHH-14280 Fix test failures 2021-12-17 22:21:33 -05:00
Chris Cranford c249b019e6 HHH-14280 Reworked test 2021-12-17 22:21:33 -05:00
Rapenok, Ivan f4994a4cf6 HHH-14280 - audit query does not work when @IdClass composite identifier contains association to a not audited entity
Add possible solution
2021-12-17 22:21:33 -05:00
Rapenok, Ivan 0ea49974d0 HHH-14280 - audit query does not work when @IdClass composite identifier contains association to a not audited entity
Add test case
2021-12-17 22:21:33 -05:00
Chris Cranford 4e4f2e40b4 HHH-9432 Fix test failures 2021-12-17 18:43:20 -05:00
Chris Cranford 921a958e88 HHH-9432 Fix audit queries when `@Where` applied to discriminator mappings 2021-12-17 18:43:20 -05:00
Chris Cranford 9ace8a9dd3 HHH-13817 Support to-one relation traversals in RevisionsOfEntity queries 2021-12-17 18:31:10 -05:00
Chris Cranford 96e7d4cbb1 HHH-11573 Fix rebase issues 2021-12-17 18:30:09 -05:00
Chris Cranford d263466dc0 HHH-11573 Moved test class 2021-12-17 18:30:09 -05:00
Chris Cranford a408fa4597 HHH-11573 - Fix non-deterministic result ordering & test validation. 2021-12-17 18:30:09 -05:00
Chris Cranford 8d7562a314 HHH-11573 - Added todo wrt query context. 2021-12-17 18:30:09 -05:00
Chris Cranford 938b481cd9 HHH-11573 - Test case fixes. 2021-12-17 18:30:09 -05:00
Chris Cranford 6676a9c7bd HHH-11573 - Fix javadoc typo. 2021-12-17 18:30:09 -05:00
Felix Feisst 1eec41a136 HHH-11573 Query based on type expressions 2021-12-17 18:30:09 -05:00
Chris Cranford 9c8eabcd95 HHH-11896 Fix test failures on Oracle 2021-12-17 00:54:42 -05:00
Chris Cranford 2e8d16efca HHH-11896 Fix test to be deterministic 2021-12-17 00:54:42 -05:00
Felix Feisst 3e3d227c9a HHH-11896 Support 'on-clause' criterion when traversing audit query relations 2021-12-17 00:54:42 -05:00
Chris Cranford e07a8c3bd5 HHH-11895 Fix test to be deterministic 2021-12-17 00:53:19 -05:00
Felix Feisst d9f3e82291 HHH-11895 Support traversal of components in audit query API 2021-12-17 00:53:19 -05:00
Chris Cranford 25421733d6 HHH-14981 Support null precedence with Envers Query API 2021-12-16 19:53:21 -05:00
Chris Cranford 057b9bfc04 HHH-11452 Fix test failures 2021-12-16 01:12:39 -05:00
Felix Feisst e50037ec8c HHH-11452 Added possibility to apply the like operator on a function criterion. Added possibility to use the id of an entity as function argument. 2021-12-16 01:12:39 -05:00
Felix Feisst 640bd85975 HHH-11452 Extended audit query API to specify the use of scalar
functions.
2021-12-16 01:12:39 -05:00
Felix Feisst bb09222102 HHH-11735 Support traversal of to-many-associations in audit queries. 2021-12-16 01:10:08 -05:00
Chris Cranford b384b37f39 HHH-8051 Gracefully handle not-found to-one associations 2021-12-16 01:05:27 -05:00
Gavin King 1172943252 fix broken float type precision conversion
it is not the case that ln(10) = log_2(10)
2021-12-13 13:56:17 +01:00
Steve Ebersole 1e4f1fef44 HHH-14950 - Support mapping of embeddables with no setters w/ custom instantiator
HHH-14964 - EmbeddableInitializer are called multiple times

HHH-14950 works for the most part, but cannot be used "for real" because of HHH-14964
2021-12-10 13:40:06 -06:00
Steve Ebersole 7a6cef5838 Miscellaneous
- Finished DialectVersion
- User Guide tidying
- User Guide section on AttributeBinder
2021-12-09 00:51:40 -06:00
Gavin King 2a2bf17f8f redefine AttributeAccessor in terms of the new AttributeBinder API 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
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
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 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
Christian Beikov 47416b9e24 Fixup review comments 2021-12-02 13:17:53 +01:00
Steve Ebersole b23c2f48c1 Introduce `VirtualIdEmbeddable` and `IdClassEmbeddable` + instantiators
- Clean up Component Type, removing as many calls to its tuplizer as possible atm
- Clean up ManagedMappingType, EntityPersister, etc - mainly work around getting and setting value(s)

Still need to
  - integrate embedded forms.  `VirtualIdEmbeddable` does not really need it as it can use the id-mapping itself as the embedded form.  But `IdClassEmbedded` should really be integrated
  - integrate `VirtualKeyEmbeddable` and `VirtualKeyEmbedded` for use as inverse composite fks
  - share `#finishInit` handling for `EmbeddableMappingType`, `VirtualIdEmbeddable` and `IdClassEmbeddable`
  - ability to use the containing composite owner as the parent of a composite (legacy behavior is to always use the "first" entity
  - clean up ComponentType, esp wrt its use of ComponentTuplizer
2021-12-01 11:33:03 -06:00
Andrea Boriero 1589686608 Fix envers test failure with Sybase 2021-11-29 12:38:59 +01:00