18190 Commits

Author SHA1 Message Date
Sanne Grinovero
a76a314586 HHH-17993 Metamodel processing on bootstrap: avoid retrying same metamodel class name multiple times 2024-04-23 17:35:04 +01:00
Sanne Grinovero
c1dca9879f HHH-17991 Reduce overhead from @DialectOverride discovery 2024-04-23 17:35:04 +01:00
Sanne Grinovero
bfd0a29e95 HHH-17988 MetadataContext should consistently use ClassLoaderService 2024-04-23 17:35:04 +01:00
Sanne Grinovero
6f8545f1a5 HHH-17987 Improve allocation rate of ReflectHelper#setterMethodOrNull 2024-04-23 17:35:04 +01:00
Sanne Grinovero
cf5d09cc76 HHH-17980 Excessive contention during getter identification in the ByteBuddy enhancer 2024-04-23 17:35:04 +01:00
Christian Beikov
63551906d8 Fix HANA dialect doesRoundTemporalOnOverflow 2024-04-23 18:00:01 +02:00
Christian Beikov
94bade568a Fix SybaseASEDialect column length resolution 2024-04-23 17:07:59 +02:00
Gavin King
06139cf5da HHH-17999 use Supplier instead of Constructor
this is quite a lot cleaner

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-23 16:23:01 +02:00
Gavin King
abbfa5333e HHH-17999 use Constructor<Expectation> instead of Class<Expectation>
for Quarkus

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-23 16:23:01 +02:00
Andrea Boriero
97a15ae194 HHH-17965 @ElementCollection with @CollectionTable throws o.h.MappingException Foreign key must have same number of columns as the referenced primary key 2024-04-23 13:51:13 +02:00
Andrea Boriero
4eb542872a HHH-17965 Add test for issue 2024-04-23 13:51:13 +02:00
gtoison
55781039fe HHH-17994 defensive check for the case when classNames wasn't set
(cherry picked from commit 08127f28df51d4ca267ab2ade30b90d6e4022c15)
2024-04-22 15:16:41 -05:00
Andrea Boriero
b7ade6c26c Upgrade docker mssql image to 2022-CU12-ubuntu-22.04 2024-04-22 11:38:16 +01:00
Gavin King
122a659776 add an example to jdoc of SS.fetch()
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King
daa99ab11b HHH-17955 Javadoc improvements in StatelessSession
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King
e0e603a072 talk about lock() and refresh() in javadoc preamble for Session
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King
5948ad1245 two minor improvements to javadoc
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King
a5b8a39d54 make javadoc consistent
yes, these methods actually do still accept detached objects
as of today, but that's already deprecated and we're going to
turn it off in the future

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King
082e47efb7 HHH-17953 fix StatelessSession.fetch() for empty collection
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King
18c0fd7a78 fix an NPE that occurred if a QL 'delete' statement had no predicate (#8190)
(bug exposed by Jakarta Data TCK)

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Gavin King
a7ad74f75f fix error message when repository backed by regular session returns Uni
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-19 21:43:26 +02:00
Christian Beikov
9d878cfb4f Remove JPA 3.2 build file 2024-04-19 13:53:12 +02:00
Christian Beikov
1166e64fe0 HHH-17884 Introduce special SqlTypes constants for ordinal based enums 2024-04-19 13:03:56 +02:00
Marco Belladelli
d8e0ecfbf8 HHH-17916 Check type is resolved before building generic property 2024-04-19 12:40:45 +02:00
Marco Belladelli
f220abd1ca HHH-17916 Add test for issue 2024-04-19 12:40:45 +02:00
Florian Heck
6e1fe9374b HHH-17975 add testcase for retrieving revision by an Instant 2024-04-19 12:34:46 +02:00
Florian Heck
6bca5a4960 HHH-17975: use the same precision (millis) for resolving revision timestamps from Instant as from LocalDateTime 2024-04-19 12:34:46 +02:00
Marco Belladelli
6aa573004f
Tag release version before committing development version change 2024-04-19 08:58:47 +02:00
Christian Beikov
6cf3316675 HHH-17174 Fix empty query string 2024-04-18 18:16:51 +02:00
Yanming Zhou
cb8a1c464d HHH-17951 Deprecate unused Size.LobMultiplier 2024-04-17 18:36:49 +02:00
Hibernate-CI
35a49f566b Post-steps for release : 6.5.0.CR2 2024-04-12 18:38:47 +00:00
Hibernate-CI
91fabd4d01 Pre-steps for release : 6.5.0.CR2 6.5.0.CR2 2024-04-12 18:34:48 +00:00
Steve Ebersole
c90abde507 HHH-17559 - Prefer Java Time handling for all temporal values
(cherry picked from commit a996b6514e19673af9dd6b292f7681de0e3c7b23)
2024-04-12 13:13:36 -05:00
Andrea Boriero
2500f1eb82 HHH-17761 migration guide 2024-04-12 13:12:58 -05:00
Andrea Boriero
af6c8eefea Fix SybaseASEDialect column lenght resolution 2024-04-12 19:27:52 +02:00
Andrea Boriero
7cc7bac5d4 Fix LobSchemaUpdateTest failure for sybase and mssql legacy dialects 2024-04-12 19:09:54 +02:00
Andrea Boriero
dbaccbe6e0 Fix sybase LobSchemaUpdateTest failure 2024-04-12 19:09:54 +02:00
Andrea Boriero
1dc67a323f HHH-17761 Merging a bytecode enhanced entity with all properties set to null does not apply the update 2024-04-12 11:52:01 -05:00
Andrea Boriero
78d4cce17e HHH-17761 Add test for issue 2024-04-12 11:52:01 -05:00
marko-bekhta
2d00d4f7fa HHH-17761 Add a reproducer 2024-04-12 11:52:01 -05:00
Steve Ebersole
11d468eeb7 HHH-17946 - Avoid creating ProxyFactory if possible
(cherry picked from commit f68f6aae50b0f2fb371cceb65cd8812af76b734f)
2024-04-12 11:23:45 -05:00
Marco Belladelli
7b96a0ade2 HHH-17783 Allow early initialization of entity instance by non-owning initializer 2024-04-12 11:14:59 -05:00
gtoison
b545d095ec HHH-17918 test reproducing the issue 2024-04-12 11:14:59 -05:00
Marco Belladelli
10f7f132e5 HHH-17783 Add test for issue 2024-04-12 11:14:59 -05:00
Yanming Zhou
8efcccda8d HHH-17912 Disallow multiple valued binding for BasicCollectionType
(cherry picked from commit 71234d90aed88ca7c25b413f135253f5248d9398)
2024-04-12 11:02:59 -05:00
Christian Beikov
7a4e0c21f4 HHH-17932 Get rid of unnecessary synchronization 2024-04-12 14:01:59 +02:00
Gavin King
e9b0656f94 add missing @since annotations
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:34:32 +02:00
Gavin King
40f1f616cb add a missing @since annotation
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:34:28 +02:00
Gavin King
2a8fef4386 allow @Find @Nullable and @Query @Nullable
to return null from a repository method

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:34:22 +02:00
Gavin King
37195c21e1 better impl of repository id lookup methods returning Optional
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:34:18 +02:00