7648 Commits

Author SHA1 Message Date
Steve Ebersole
335a4d62e3 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-18 04:26:49 -06: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
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
Gavin King
bc65526c77 clean up the Dialect-specific default property handling 2021-12-16 15:58:47 +01: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
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
Andrea Boriero
a6ee855d29 Fix thowing IllegalArgumentException when accessing procedure not registered parameters 2021-12-14 13:36:24 +01:00
Andrea Boriero
fa499dff94 Fix issue with ResultSetMapping resolution 2021-12-14 13:36:24 +01:00
Christian Beikov
c4e7e2b3fe Fix support for dropping local temporary tables 2021-12-14 13:00:14 +01:00
Christian Beikov
eecda61ceb Move more tests and fix subselect support 2021-12-14 13:00:14 +01:00
Ivaylo Mitrev
b9814f5cef HHH-14948 Adapt contributed patch to 6.0 branch 2021-12-13 21:30:46 +00: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
Andrea Boriero
36be5cc3da Re-enabled additional tests 2021-12-13 13:44:36 +01:00
Steve Ebersole
fcda293c5e HHH-14975 - Allow use of auto-applied AttributeConverter as native-query result or parameter 2021-12-12 15:47:57 -06:00
Steve Ebersole
38fa2aef75 HHH-13082 - Support specifying an AttributeConverter class as a @ColumnResult#type 2021-12-12 15:14:28 -06:00
Steve Ebersole
bd784b6e90 Misc cleanup related to MultiLoader hierarchy 2021-12-12 12:40:34 -06:00
Steve Ebersole
8fef9c4de4 Test for https://hibernate.atlassian.net/browse/HHH-11784 2021-12-11 20:09:03 -06:00
Gavin
0ca7a659b0 "long" varchar/varbinary mappings
add Length class with useful constant values
well-defined mappings for "long" varchar/varbinary types
make LONGVARCHAR a synonym for VARCHAR with length=LONG32
make LONGVARBINARY a synonym for VARBINARY with length=LONG32
add Dialect.getMaxVarcharLength() + friends
make schema validator ignore the differences between string types
2021-12-11 21:27:01 +01:00
Steve Ebersole
a35ad1905b HHH-10832 - Remove org.hibernate.property.access.spi.EnhancedGetterMethodImpl 2021-12-10 15:14:39 -06:00
Steve Ebersole
a87157ddb8 fix Derby test failures 2021-12-10 14:42:56 -06:00
Steve Ebersole
64af4885b9 HHH-14950 - Support mapping of embeddables with no setters w/ custom instantiator
HHH-14964 - EmbeddableInitializer are called multiple times
2021-12-10 14:39:51 -06: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
a2a6425b82 fix Oracle test failures 2021-12-10 13:36:53 -06:00
Fabio Massimo Ercoli
c6ed830d82 Cache and expose column size 2021-12-10 10:08:07 -05:00
Andrea Boriero
e08a7665c8 Fix load of entity with Date[] field 2021-12-10 10:21:40 +01:00
Fabio Massimo Ercoli
15121842f1 Test persist of array of dates 2021-12-10 10:21:40 +01:00
nathan.xu
62e55f3c3c HHH-14970 make use of new Java language features from v8 to v11 2021-12-09 21:26:04 -05:00
Gavin King
0bb647e62b revert to previous design with raw types
there is a problem with this approach: the user now gets unchecked
warnings since we've recently filled in the type args of the params
of some methods of Query and NativeQuery

but it's very hard to see how to fix the problem without breaking
compatibility
2021-12-09 21:25:31 -05:00
Gavin King
a1e3f0cd6f fix some warnings and clean up some typing issues
this is a general cleanup of the Session + Query hierarchies
2021-12-09 21:25:31 -05:00
Fabio Massimo Ercoli
b91944c09a Support statistics when criteria(s) are executed 2021-12-09 15:04:35 -05:00
Fabio Massimo Ercoli
f05f002c22 Test statistics of criteria(s) executed 2021-12-09 15:04:35 -05:00