12186 Commits

Author SHA1 Message Date
Christian Beikov
e9513b1db5 HHH-18271 Optimizations related to caching and statement execution
* Acquire ResultSet eagerly in JdbcValuesResultSetImpl to allow better inlining of hot next() method
* Precompute cache related metadata in JdbcValuesMapping
* Don't copy data returned from cache, since it's never mutated
* Improve QueryParameterBindings building and binding
* Get rid of LinkedIdentityHashMap and reduce allocations
* Get rid of some megamorphic call sites
2024-08-05 15:14:00 -05:00
Dmitrii Pronichev
2214c50383 fixed incorrect link to new jakarta-jdbc-password property from the deprecated PASS property in JdbcSettings 2024-08-01 10:43:43 -05:00
Andrea Boriero
6a1581cf4a HHH-15725 Criteria API Expression.as adds cast even when the cast type is equal to the expression type 2024-07-31 15:39:58 -05:00
Andrea Boriero
aece493697 HHH-15725 Add test for issue 2024-07-31 15:39:58 -05:00
Andrea Boriero
03e48d8355 HHH-18280 add hibernate.query.pass_procedure_paramater_names setting 2024-07-31 15:22:04 -05:00
Andrea Boriero
8740a832d2 HHH-18302 DB2CallableStatementSupport uses an invalid syntax for named parameters 2024-07-31 15:22:04 -05:00
Andrea Boriero
a3c779a019 HHH-18302 Add test for issue 2024-07-31 15:22:04 -05:00
Andrea Boriero
8766a8e012 HHH-18280 Support named procedure parameters down to the JDBC level 2024-07-31 15:22:04 -05:00
Andrea Boriero
79480ab490 HHH-18280 Add test for issue 2024-07-31 15:22:04 -05:00
Andrea Boriero
7c84a5b597 HHH-18177 Add test for issue 2024-07-30 13:51:56 +02:00
Marco Belladelli
677c8b6529 HHH-18062 Fix id-class record instantiation and mapper component 2024-07-29 10:15:02 -05:00
Marco Belladelli
996783c380 HHH-18062 Add test for issue 2024-07-29 10:15:02 -05:00
Marco Belladelli
09baefba40 HHH-18406 Drop and recreate UserDefinedTypes for schema update as well 2024-07-29 16:11:40 +02:00
Marco Belladelli
6d3ee70f72 HHH-18406 Add test for issue 2024-07-29 16:11:40 +02:00
Marco Belladelli
8d39709cec HHH-18330 Check model part when reusing table group for to-one fetch 2024-07-29 16:11:12 +02:00
Marco Belladelli
c27ec0fd29 HHH-18330 Add test for issue 2024-07-29 16:11:12 +02:00
Christian Beikov
1f08501d80 HHH-18229 Handle null owner key for collections 2024-07-26 16:42:59 +02:00
Steve Ebersole
2f3a01fd19 HHH-18411 - Add ability to specify a custom UuidGenerator.ValueGenerator 2024-07-24 16:18:40 -05:00
Steve Ebersole
fdef3b52eb HHH-18411 - Add ability to specify a custom UuidGenerator.ValueGenerator 2024-07-24 16:18:40 -05:00
Jan Schatteman
55108d0740 HHH-18224 - db info logging cleanup
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-07-24 11:13:35 -05:00
Jan Schatteman
f556ba9e90 HHH-18224 - standardize logging of database connection
HHH-18224 - add database logging info support also to MultiTenantConnectionProvider. Log output through subsystem logging.
HHH-18224 - remove duplicated database info logging
HHH-18224 - complete refactor of DatabaseConnectionInfo and add more info
HHH-18224 - add standard database info logging to the proxool connection provider
HHH-18224 - add min/max pool sizes to standard db logging

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-07-24 11:13:35 -05:00
Marco Belladelli
e33bcfcf81 HHH-18382 Fix embeddable disc-formula insertable / updatable flags 2024-07-24 17:00:14 +02:00
Marco Belladelli
ab158ec826 HHH-18382 Add test for issue 2024-07-24 17:00:14 +02:00
Marco Belladelli
e2997bdc74 HHH-18357 Account for mapped-superclasses without ids 2024-07-24 16:59:37 +02:00
Marco Belladelli
f4297a0020 HHH-18357 Add test for issue 2024-07-24 16:59:37 +02:00
Marco Belladelli
1aa7db6a0a HHH-18390 Fix hash code for entity types not referring to primary keys 2024-07-24 16:59:11 +02:00
Marco Belladelli
baafcd9fbb HHH-18390 Add test for issue 2024-07-24 16:59:11 +02:00
Christian Beikov
01d4b997b5 Fix EDB xor implementation 2024-07-23 20:22:14 +02:00
Christian Beikov
59f944d691 HHH-18410 Hoist some state to AbstractAttributeMapping to avoid megamorphic call sites 2024-07-23 19:35:10 +02:00
Christian Beikov
b0a0ca15c6 HHH-18410 Make use of getter/setter cache as much as possible 2024-07-23 19:35:10 +02:00
Christian Beikov
ba05533a03 HHH-18379 Allow passing row count estimate to pre-size collections 2024-07-23 15:22:28 +02:00
Alvaro Esteban Pedraza
33b2e36035 HHH-12836: Improved logging when initiating service
Updated logging to indicate fallback provider checking when initiating JTA
platform service
2024-07-23 08:02:32 -05:00
Steve Ebersole
39de0115f7 HHH-18306 - Implicit instantiation for queries with single selection item broken
HHH-18401 - SelectionQuery needs better validation of query return type
2024-07-23 07:58:14 -05:00
Steve Ebersole
3bf82e6d82 HHH-18288 - Subclasses SINGLE_TABLE Inheritance should not be allowed to define @Table 2024-07-22 11:55:54 -05:00
Gavin King
d938576fcc minor code changes
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-07-21 18:59:11 +02:00
Gavin King
9263a26270 fix an exception message
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-07-21 18:59:11 +02:00
Christian Beikov
5b2a87c5e8 HHH-18395 Fix intermittent failures of clock based tests by using custom clock 2024-07-17 18:01:28 +02:00
Christian Beikov
415bfcf8fa Fixes for nightly failures of PG and EDB v12, DB2 10.5 and MariaDB. Exclude Oracle 21 from nightly runs in favor of Atlas build 2024-07-16 17:26:15 +02:00
Christian Beikov
b51acb752d HHH-17949 Fix upsert handling when optimistic locking is involved 2024-07-16 17:26:15 +02:00
Davide D'Alto
ab3e4e27e0 HHH-18381 Changes for Hibernate Reactive 2.4 2024-07-16 10:11:34 -05:00
Andrea Boriero
164cbf0e8b HHH-18313 NullPointerException because JdbcIsolationDelegate.sqlExceptionHelper() returns null 2024-07-15 14:48:50 +02:00
Andrea Boriero
63171d365a HHH-18338 o.h.UnknownEntityTypeException: Unable to locate persister thrown when an embeddable object is loaded before the entity it references 2024-07-15 13:54:18 +02:00
Andrea Boriero
287bda68a0 HHH-18338 Add test for issue 2024-07-15 13:54:18 +02:00
Gavin King
93b2fc2bbd add missing @Override annotations
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-07-13 11:19:54 +02:00
Christian Beikov
505092e4ea HHH-18375 Reuse previous row state when result cardinality is duplicated 2024-07-11 19:12:40 +02:00
Geoffrey Park
228bd7958f HHH-18343 fix Altibase integration test failures since Hibernate 6.5.2 2024-07-11 18:31:12 +02:00
Jan Schatteman
b48d0cf0f3 HHH-17914 - correct the NPE protection in AbstractCollectionPersister.logStaticSQL()
checking if `getRowMutationOperations().hasInsertRow()` (e.g.) is not enough to avoid a possible NPE at
`getRowMutationOperations().getInsertRowOperation().getSqlString()` since `getInsertRowOperation()` can still return null

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-07-11 15:49:45 +02:00
nathan.xu
2850c5ff90 HHH-18342 improve javadoc in SharedSessionContractImplementor 2024-07-11 01:59:32 +02:00
Samuel Guillemet
bb90a84505 HHH-18339 Set support filter clause to True for H2 2024-07-09 15:58:46 +02:00
nathan.xu
e2e1661845 HHH-18335 Improve partial order algorithm in AnnotationMetadataSourceProcessorImpl 2024-07-09 14:31:25 +02:00