Steve Ebersole
11d468eeb7
HHH-17946 - Avoid creating ProxyFactory if possible
...
(cherry picked from commit f68f6aae50
)
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 71234d90ae
)
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
Andrea Boriero
90e80efa48
Fix mssql LobSchemaUpdateTest failure
2024-04-12 13:34:09 +02:00
Gavin King
0007f6a8a0
improve Jakarta Data exception messages
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:34:01 +02:00
Gavin King
82518862ae
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-12 13:33:58 +02:00
Gavin King
0c6d3595a8
fix exceptions thrown from JD lifecycle method
...
SS does not do exception translation
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:33:54 +02:00
Gavin King
cf184bef64
HHH-17934 limit test to databases with proper MERGE support for now
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:33:50 +02:00
Gavin King
a9f1681bfc
HHH-17934 sort out version handling in upsert()
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:33:45 +02:00
Gavin King
da8a56b9c5
HHH-17934 generate a correct SQL merge statement
...
(adds the version check if necessary)
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:33:41 +02:00
Gavin King
b780e6ee77
HHH-17934 test demonstrating bug
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:33:35 +02:00
Yanming Zhou
e9a7a57d13
Fix SqlTypes::isStringType
2024-04-12 13:33:14 +02:00
Yanming Zhou
4ca8377500
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-12 13:33:10 +02:00
Mohammad Yasin Sadeghi
030bc54eea
correct a typo
2024-04-12 13:32:50 +02:00
Gavin King
2e4ef2e252
get rid of raw types and extract methods
...
eliminates compiler warnings
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:32:38 +02:00
Gavin King
85e764ee3b
improve error message, as suggested by Yoann
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:32:32 +02:00
Gavin King
82ef400705
slightly simplify generated code for pagination using static imports
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:32:27 +02:00
Gavin King
5d611e63b7
update generated pagination code to new JD PageRequest API
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-12 13:32:19 +02:00
Christian Beikov
4b863b180e
HHH-17947 Bidirectional association management shouldn't ignore maintaining inverse lazy objects
2024-04-12 13:29:19 +02:00
Christian Beikov
6112a1809e
HHH-17947 Add additional test for unique key loading
2024-04-12 13:29:19 +02:00
Jan Schatteman
fd9a5b9861
HHH-17947 - Add test for issue
...
Signed-off-by: Jan Schatteman <jschatte@redhat.com>
2024-04-12 13:29:19 +02:00
Marco Belladelli
75de08372e
HHH-17832 Register projection usage for circular bidirectional fetch
2024-04-11 16:33:17 +02:00
Marco Belladelli
a502842b5c
HHH-17832 Add test for issue
2024-04-11 16:33:17 +02:00
Yoann Rodière
0e0437715b
HHH-17935 Do not use the "auto-enable" feature for the tenant ID filter
...
This filter already gets enabled automatically where relevant, and
critically it's not relevant when using a "root" tenant identifier.
2024-04-10 14:43:59 +02:00
Christian Beikov
94f17a92e0
HHH-17904 Introduce config property to enable native enum type
2024-04-10 14:11:44 +02:00
Christian Beikov
5d16b90826
HHH-17906 Use insert target paths for type inference of SqmValues
2024-04-10 14:11:40 +02:00
Christian Beikov
73038b47ab
HHH-17884 Respect ordering guarantee of ORDINAL/STRING when using native enums
2024-04-10 14:11:36 +02:00
Marco Belladelli
661fe9ede0
HHH-10921 Add test for issue
2024-04-09 19:17:00 +02:00
dependabot[bot]
3957bb81fc
Bump com.gradle.enterprise from 3.16.2 to 3.17
...
Bumps com.gradle.enterprise from 3.16.2 to 3.17.
---
updated-dependencies:
- dependency-name: com.gradle.enterprise
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 10:06:01 +02:00
dependabot[bot]
f826731747
Bump com.gradle.common-custom-user-data-gradle-plugin from 1.13 to 2.0
...
Bumps com.gradle.common-custom-user-data-gradle-plugin from 1.13 to 2.0.
---
updated-dependencies:
- dependency-name: com.gradle.common-custom-user-data-gradle-plugin
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-09 10:05:58 +02:00
Gavin King
cd06e56ab2
fix previous-page navigation with KeyedResultList
...
It was returning the results in reverse order.
This caused a failure in the Data TCK.
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:53 +02:00
Gavin King
96855d0525
retain type use annotation in return types and simplify code
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:47 +02:00
Gavin King
8053ed9cec
better cooperation with other Jakarta Data implementations
...
and with Scott's preprocessor
produce WARNINGs instead of ERRORs in some cases
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:44 +02:00
Gavin King
42d2f07e03
add a test and a comment
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:41 +02:00
Gavin King
594bc89943
properly include repeatable annotations in @SupportedAnnotationTypes
...
this is required (see javadoc of Processor)
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:37 +02:00
Gavin King
ef934fb09f
make Jakarta Data static metamodel into interfaces
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:32 +02:00
Gavin King
0ef361ae0c
add to tests
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:27 +02:00
Gavin King
4b7a740d7e
validate that paginated query methods have a well-defined ordering
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:22 +02:00
Gavin King
0d872baf94
sync to latest spec and removal of sorting from PageRequest
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:18 +02:00
Gavin King
1779a7145a
improve 'this' emulation for @Query methods
...
for Jakarta Data TCK work
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:15 +02:00
Gavin King
25e76ef64d
look for primary entity type in indirectly-implemented interfaces
...
for Jakarta Data TCK work
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:09 +02:00
Gavin King
ca54b2b09f
add tests reflecting things in Jakarta Data TCK
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:05 +02:00
Gavin King
e0111d3655
remove unnecessary code, fixing bug in generated imports
...
for Jakarta Data TCK work
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-09 10:05:02 +02:00