Commit Graph

12977 Commits

Author SHA1 Message Date
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
Steve Ebersole 4c758b2d48 HHH-14977 - @Where is broken in 6.0
`@Where` and `@Filter` fragments are now fully handled as AST - each fragment gets its own Predicate instance.

Some more work coming to clean up methods we no longer use which require the old String-manip approach.
2021-12-17 19:09:09 -06:00
Steve Ebersole 1c5ec0612c HHH-14977 - @Where is broken in 6.0
`@Where` and `@Filter` fragments are now fully handled as AST - each fragment gets its own Predicate instance.

Some more work coming to clean up methods we no longer use which require the old String-manip approach.
2021-12-17 19:07:46 -06: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
Christian Beikov 9d75e6d620 Fix some wrong assignability checks 2021-12-17 18:30:26 +01:00
Andrea Boriero f765eb4a87 Fix issue with Hibernate proxy 2021-12-17 18:30:26 +01:00
Fabio Massimo Ercoli d845f4b066 Test load of polymorphic entities 2021-12-17 18:30:26 +01:00
Andrea Boriero 5626b075dc Fix instantiation of VirtualId 2021-12-17 18:29:53 +01:00
Christian Beikov c92a475892 Get rid of unnecessary lexer rules 2021-12-17 15:40:08 +01:00
Andrea Boriero 017d1a2dcd Reenable additional tests 2021-12-17 09:06:09 +01:00
Christian Beikov b75c2117b2 Fix resolving table references for discriminator path 2021-12-17 08:23:53 +01: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
Gavin King bc65526c77 clean up the Dialect-specific default property handling 2021-12-16 15:58:47 +01: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
Fabio Massimo Ercoli 28b8b33b88 Support multiload by single natural id 2021-12-15 10:52:43 -06:00
Fabio Massimo Ercoli 2814c05399 Test multiload on single event 2021-12-15 10:52:43 -06:00
Fabio Massimo Ercoli 647c2a923c Use single loader to load single instance on multiloading 2021-12-15 10:52:43 -06:00
Fabio Massimo Ercoli cef98f67a9 Test multiloading on partial cached entities 2021-12-15 10:52:43 -06:00
Steve Ebersole 579b3f0dcb HHH-14977 - @Where is broken in 6.0
Next iteration where `@Where` fragments generate AST one or more `WhereFilterPredicate` instances.

At the moment, `@Filter` fragments are collected together using the existing String-manipulation style and still collected into a single `FilterPredicate`.  Next step is to make that more AST-centric and hopefully get rid of the String-manip-based methods
2021-12-15 10:49:49 -06:00
Sanne Grinovero c5c24344a4 HHH-14979 Upgrade to Log4J 2 2.16.0 2021-12-15 11:48:35 +00:00
Andrea Boriero a4b574e826 @FailureExpected annotation added to tests in orm 6 substituted with @NotImplementedYet 2021-12-15 09:56:07 +01:00
Gavin King bd9276d6d7 clean up version stuff in DB2i/z dialects 2021-12-15 08:56:50 +01:00
Gavin King e992b41756 clean up constructor model in Dialects
and fix strange model of versions on Maria/TiDB
2021-12-14 22:54:27 +01:00
Gavin King e2be0960fd let's not use LONGVARCHAR to mean two different things 2021-12-14 22:54:27 +01:00
Gavin King eb3bcdb94a reworked approach to Dialect column type customization 2021-12-14 22:54:27 +01:00
Steve Ebersole 103e5c658b HHH-14977 - @Where is broken in 6.0
simple fix hooking in to the existing String based building. working on a version that
uses the AST
2021-12-14 15:36:12 -06:00
Andrea Boriero d89b28e1a9 Re-enabled additional tests 2021-12-14 13:36:24 +01:00
Andrea Boriero 6ebceedf48 Fix Query#getParameters() returning an empty Set when the query has no parameters 2021-12-14 13:36:24 +01:00
Andrea Boriero ba558503a8 Fix thowing IllegalArgumentException when accessing procedure not registered parameters 2021-12-14 13:36:24 +01:00