Yanming Zhou
ecaeea414d
HHH-18034 Configuration property `hibernate.event.listener.eventType` should be more lenient against spaces
2024-04-30 11:57:12 +01:00
Gavin King
fe7b3c9e7e
HHH-18023 fix questionable test
...
PESSIMISTIC_READ is not really a "more exclusive" lock than UPGRADE_NOWAIT
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-28 20:37:18 +02:00
Gavin King
1e0e0ac02b
HHH-18023 fix wrong test assertions
...
OPTIMISTIC means the version gets checked at end of tx,
this lock mode is never acquired implicitly
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-28 20:37:18 +02:00
Gavin King
1657702015
HHH-18024 fix getLockMode() on read-only entity
...
it resulted in spurious exception claiming entity was deleted
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-28 20:37:18 +02:00
Gavin King
789cc12b8e
HHH-18023 fix bugs with versioned LockModes
...
- NPE at commit time for OPTIMISTIC on entity with no version
- LockMode.OPTIMISTIC treated as equivalent to LockModeType.OPTIMISTIC
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-28 20:37:18 +02:00
Gavin King
39a6f9880b
clean up CacheModeHelper
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-28 20:37:18 +02:00
Gavin King
60a732152f
clean an unused import
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-27 01:29:56 +02:00
Jan Schatteman
1b057b8f1f
HHH-17967 - Add test for issue (already fixed on main, fails pre-6.5)
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-04-25 16:39:21 +02:00
Andrea Boriero
2202487633
HHH-17964 Hibernate using wrong column order for ElementCollection query when composite ID is present
2024-04-25 09:59:13 +02:00
Andrea Boriero
a1739979d1
HHH-17964 Add test for issue
2024-04-25 09:59:13 +02:00
Gavin King
b102a6e2c9
slightly improve format of error message
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-24 22:41:02 +02:00
Marco Belladelli
181399f84c
HHH-17983 Remove entity keys from batch queue before loading
2024-04-24 11:37:53 +02:00
Marco Belladelli
882709bdf8
HHH-17983 Add test for issue
2024-04-24 11:37:53 +02:00
Marco Belladelli
ce56234857
HHH-17883 Correct original column order for primary keys
2024-04-24 11:36:46 +02:00
Marco Belladelli
0c8bfefd1c
HHH-17883 Add test for issue
2024-04-24 11:36:46 +02:00
Christian Beikov
bda95dfbe7
Fix HANA dialect doesRoundTemporalOnOverflow
2024-04-23 17:59:12 +02:00
Christian Beikov
969ecaae58
Fix SybaseASEDialect column length resolution
2024-04-23 17:08:18 +02:00
Marco Belladelli
7adab31924
HHH-17818 Add a UG paragraph and examples for `@ConcreteProxy`
2024-04-23 15:37:22 +02:00
Marco Belladelli
84cb94b990
HHH-17818 Introduce new `@ConcreteProxy` annotation
...
Also, preserve laziness for optional + ConcreteType associations
2024-04-23 15:37:22 +02:00
Gavin King
2bc78d50b0
HHH-17999 use Supplier instead of Constructor
...
this is quite a lot cleaner
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-23 15:28:38 +02:00
Gavin King
0468e04955
HHH-17999 use Constructor<Expectation> instead of Class<Expectation>
...
for Quarkus
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-23 15:28:38 +02:00
Andrea Boriero
42cbbc3a0c
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:10 +02:00
Andrea Boriero
a3690b1e68
HHH-17965 Add test for issue
2024-04-23 13:51:10 +02:00
Sanne Grinovero
8f277d4b1c
HHH-17993 Metamodel processing on bootstrap: avoid retrying same metamodel class name multiple times
2024-04-22 21:26:33 +01:00
Sanne Grinovero
4c3f8a625d
HHH-17991 Reduce overhead from @DialectOverride discovery
2024-04-22 13:28:56 +01:00
Gavin King
c71967d6c1
code cleanups to EnhancementAsProxyLazinessInterceptor
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-22 13:08:02 +02:00
Gavin King
caab8a97fc
squash jdoc warnings
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-22 13:08:02 +02:00
Gavin King
8df8fd37be
HHH-17984 StatelessSession statistics for collections
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-22 13:08:02 +02:00
Gavin King
62132594eb
HHH-17984 initial support for Statistics with StatelessSession
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-22 13:08:02 +02:00
Gavin King
34fd71c131
HHH-14968 remove method with no callers
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-22 13:08:02 +02:00
Sanne Grinovero
c932da7890
HHH-17987 Improve allocation rate of ReflectHelper#setterMethodOrNull
2024-04-22 11:15:55 +01:00
Sanne Grinovero
beefee96b5
HHH-17988 MetadataContext should consistently use ClassLoaderService
2024-04-22 11:14:35 +01:00
Sanne Grinovero
e84370e063
HHH-17980 Excessive contention during getter identification in the ByteBuddy enhancer
2024-04-22 11:13:31 +01:00
Marco Belladelli
1fbed6598f
HHH-17916 Check type is resolved before building generic property
2024-04-19 12:40:42 +02:00
Marco Belladelli
9163d50603
HHH-17916 Add test for issue
2024-04-19 12:40:42 +02:00
Gavin King
aae9b1e55d
talk about lock() and refresh() in javadoc preamble for Session
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-18 10:53:58 +02:00
Gavin King
38c56acd0b
two minor improvements to javadoc
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-18 10:53:58 +02:00
Gavin King
810e5fc76d
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-17 19:28:53 +02:00
Yanming Zhou
8fdf86e8a5
HHH-17951 Deprecate unused Size.LobMultiplier
2024-04-17 18:36:04 +02:00
Gavin King
eb760db015
HHH-17969 test for issue
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-17 16:15:28 +02:00
Gavin King
5b28d1562e
add an example to jdoc of SS.fetch()
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-17 13:49:24 +02:00
Gavin King
23163919f8
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-17 02:35:27 +02:00
Gavin King
7e108433ea
HHH-17966 EAGER collections in StatelessSession ( #8186 )
2024-04-16 12:36:29 +02:00
Gavin King
1c71bb67f1
HHH-17955 rename some Interceptor callback methods
...
to better reflect their nature, and reduce confusion with
the new callbacks introduced for use with StatelessSession
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-15 21:21:26 +02:00
Gavin King
65a8ffdf0e
HHH-17955 Javadoc improvements in StatelessSession
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-15 21:21:26 +02:00
Gavin King
dd77ef651a
HHH-17955 add Interceptor callbacks for StatelessSession
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-15 21:21:26 +02:00
Gavin King
9a4d21d71d
HHH-17955 Bean Validation and @PostXxxx callbacks for StatelessSession
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-15 21:21:26 +02:00
Gavin King
59603dffb3
clean up weird code formatting in test
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-15 21:21:26 +02:00
Gavin King
7f89c6260e
HHH-17954 initial implementation of collection persistence for StatelessSession
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-15 21:21:26 +02:00
Gavin King
6695617210
HHH-17953 fix StatelessSession.fetch() for empty collection
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-13 12:43:05 +02:00