7637 Commits

Author SHA1 Message Date
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
Steve Ebersole
e6d4bc6cfa More documentation work 2021-12-09 13:03:34 -06:00
Gavin King
b889375eb6 remove left-behind method createSQLQuery() from StatelessSession 2021-12-09 12:59:04 -05:00
Gavin King
6177210395 remove Session.disconnect()/reconnect()
this stuff is so old and so bad that it's not even worth deprecating
2021-12-09 12:38:55 -05:00
Gavin King
042bd47825 finally remove all remaining traces of Session.connection() 2021-12-09 12:38:55 -05:00
Gavin King
75fc936b95 improve the javadoc for AttributeBinder+AttributedBinderType 2021-12-09 18:31:31 +01:00
Gavin King
b1ed206339 replace use of <br> with <p> in all the javadoc 2021-12-09 16:22:43 +01:00
Steve Ebersole
44fea07abf HHH-14497 - Drop legacy id-generator settings;
HHH-14718 - Drop deprecated generator implementations
2021-12-09 07:45:44 -06:00
Steve Ebersole
703eaf22a0 HHH-14497 - Drop legacy id-generator settings;
HHH-14718 - Drop deprecated generator implementations
2021-12-09 07:20:28 -06:00
Steve Ebersole
7a6cef5838 Miscellaneous
- Finished DialectVersion
- User Guide tidying
- User Guide section on AttributeBinder
2021-12-09 00:51:40 -06:00
Steve Ebersole
fa4b76702c HHH-14950 - Support mapping of embeddables with no setters (assuming a custom instantiator or repo-strategy is used)
Tests;
Remove `ComponentTuplizer` and friends;
Remove `ComponentMetadata`
2021-12-08 21:17:05 -06:00
Steve Ebersole
09cc6d7b00 HHH-14950 - Support mapping of embeddables with no setters (assuming a custom instantiator or repo-strategy is used)
Tests
2021-12-08 17:42:13 -06:00