Commit Graph

18179 Commits

Author SHA1 Message Date
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 adec141a7f fix error message when repository backed by regular session returns Uni
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-14 23:55:25 +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
Gavin King c0d2075ee6 move broken jdoc back where it belongs
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-13 11:04:47 +02:00
Steve Ebersole 06fd80907c HHH-17559 - Prefer Java Time handling for all temporal values 2024-04-12 13:11:56 -05:00
Steve Ebersole a996b6514e HHH-17559 - Prefer Java Time handling for all temporal values 2024-04-12 13:08:57 -05:00
Andrea Boriero add62a188b Fix SybaseASEDialect column lenght resolution 2024-04-12 19:27:41 +02:00
Andrea Boriero 781b9f4653 HHH-17761 Merging a bytecode enhanced entity with all properties set to null does not apply the update 2024-04-12 11:52:08 -05:00
Andrea Boriero 181d1e1966 HHH-17761 Add test for issue 2024-04-12 11:52:08 -05:00
marko-bekhta 12c01df281 HHH-17761 Add a reproducer 2024-04-12 11:52:08 -05:00
Andrea Boriero 4893b6d3ab Fix LobSchemaUpdateTest failure for sybase and mssql legacy dialects 2024-04-12 11:46:07 -05:00
Andrea Boriero aa5e1184a5 Fix sybase LobSchemaUpdateTest failure 2024-04-12 11:46:07 -05:00
Steve Ebersole f68f6aae50 HHH-17946 - Avoid creating ProxyFactory if possible 2024-04-12 11:22:16 -05:00
Marco Belladelli 44aec90538 HHH-17783 Allow early initialization of entity instance by non-owning initializer 2024-04-12 11:14:46 -05:00
gtoison 710ea629a9 HHH-17918 test reproducing the issue 2024-04-12 11:14:46 -05:00
Marco Belladelli 07692edf9a HHH-17783 Add test for issue 2024-04-12 11:14:46 -05:00
Yanming Zhou 71234d90ae HHH-17912 Disallow multiple valued binding for BasicCollectionType 2024-04-12 11:00:23 -05:00
Christian Beikov b4603e0e40 HHH-17932 Get rid of unnecessary synchronization 2024-04-12 14:01:50 +02:00
Yanming Zhou 95403bc083 Use Integer.MAX_VALUE instead for better readability 2024-04-12 13:42:47 +02:00
Christian Beikov 62a973dce0 HHH-17947 Bidirectional association management shouldn't ignore maintaining inverse lazy objects 2024-04-12 13:28:21 +02:00
Christian Beikov c624048635 HHH-17947 Add additional test for unique key loading 2024-04-12 13:28:21 +02:00
Jan Schatteman 68049bbf74 HHH-17947 - Add test for issue
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-04-12 13:28:21 +02:00
Gavin King dd209f9851 add missing @since annotations
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 10:36:20 +02:00
Gavin King 0944b52bc3 add a missing @since annotation
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 23:59:54 +02:00
Gavin King b7af56ac76 allow @Find @Nullable and @Query @Nullable
to return null from a repository method

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 23:59:54 +02:00
Gavin King f6b366fa41 better impl of repository id lookup methods returning Optional
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 22:40:46 +02:00
Andrea Boriero f27dc7d3a8 Fix mssql LobSchemaUpdateTest failure 2024-04-11 22:40:12 +02:00
Gavin King 04d22686bb improve Jakarta Data exception messages
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 19:42:26 +02:00
Gavin King 23dc51d291 fix exceptions thrown from by-id @Find method
previously, for SS it would just return null

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 19:42:26 +02:00
Gavin King 0da311e022 fix exceptions thrown from JD lifecycle method
SS does not do exception translation

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 19:42:26 +02:00
Gavin King afc92451d9 HHH-17934 limit test to databases with proper MERGE support for now
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 16:52:30 +02:00
Gavin King e620fbb892 HHH-17934 sort out version handling in upsert()
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 16:52:30 +02:00
Gavin King 17df9bedf5 HHH-17934 generate a correct SQL merge statement
(adds the version check if necessary)

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 16:52:30 +02:00
Gavin King 3fe1f58c93 HHH-17934 test demonstrating bug
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-11 16:52:30 +02:00
Yoann Rodière a10c0311fd Disable build scans for pull requests being built on s390x
For some reason, the Develocity Gradle Plugin fails to run
./gradlew buildScanPublishPrevious and spits out errors like this:

```
Publishing build scan...

The Gradle Enterprise server (ge.hibernate.org) rejected the request due to authentication being required.
If you are able to sign in to this server in a web browser, you can authenticate your environment by running the following task:

:provisionGradleEnterpriseAccessKey

Or see https://gradle.com/help/gradle-plugin-auth for additional help with authenticating your build environment.

FAILURE: Build failed with an exception.
```
2024-04-11 16:49:15 +02:00
Yoann Rodière 631beeb1fb Publish build scans on Atlas builds too 2024-04-11 16:49:15 +02:00
Yoann Rodière 6863174a8c Safely publish build scans even for pull requests 2024-04-11 16:49:15 +02:00
Yoann Rodière e233879fce Require approval for Jenkins builds on PRs from external contributors 2024-04-11 16:49:15 +02:00
Yoann Rodière 786fbd6b84 Use an organization secret for Develocity access keys 2024-04-11 16:49:15 +02:00
Yoann Rodière 3dcaa20c25 Don't populate Develocity cache in pull requests
That's potentially dangerous.
2024-04-11 16:49:15 +02:00
Yoann Rodière 2a8183371f Properly suppress exceptions thrown in finally blocks in Jenkinsfile 2024-04-11 16:49:15 +02:00
Marco Belladelli bcbae00552 HHH-17832 Register projection usage for circular bidirectional fetch 2024-04-11 16:33:14 +02:00
Marco Belladelli 747a1024da HHH-17832 Add test for issue 2024-04-11 16:33:14 +02:00
Yanming Zhou d8df261847 Fix SqlTypes::isStringType 2024-04-11 13:48:06 +02:00
Yanming Zhou fc7fc47b64 Add more type name alias mappings
1. MySQL returns `int` even `integer` is specified
2. H2 returns `character large object` and `binary large object` even `clob` and `blob` is specified
2024-04-11 13:47:03 +02:00
Mohammad Yasin Sadeghi 64e52022bc correct a typo 2024-04-10 19:16:18 +02:00
Gavin King 0ea86a9d07 get rid of raw types and extract methods
eliminates compiler warnings

Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-10 18:03:30 +02:00