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
Gavin King
97f96d841d
improve error message, as suggested by Yoann
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-10 18:03:30 +02:00
Gavin King
a2ac984162
slightly simplify generated code for pagination using static imports
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-10 17:08:38 +02:00
Christian Beikov
2343bfa513
Skip DB2 test on old DB2 versions
2024-04-10 16:24:44 +02:00
Gavin King
98c79ce53e
update generated pagination code to new JD PageRequest API
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-10 15:54:34 +02:00
Yoann Rodière
56105a8fc6
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:53 +02:00
Marco Belladelli
ce97a5da2c
HHH-10921 Add test for issue
2024-04-09 17:16:39 +02:00
dependabot[bot]
a3a727d15f
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:00:41 +02:00
dependabot[bot]
a2dac3447f
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 09:58:55 +02:00
Andrea Boriero
e95eaf6cb3
HHH-17887 Release mode After Statment with deferred result set access does not work
2024-04-09 07:46:52 +02:00
Andrea Boriero
189de9dab7
HHH-17887 Add test for issue
2024-04-09 07:46:52 +02:00
Gavin King
3fb0f83990
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-08 22:37:06 +02:00
Andrea Boriero
b5e78cf9d0
HHH-17826 ResultSet closed while scrolling results
2024-04-08 16:26:57 +02:00
Andrea Boriero
bd740f2dbf
HHH-17826 Add test for issue
2024-04-08 16:26:57 +02:00
Marco Belladelli
aa7575aabd
HHH-17857 Use `fromNameExact` when determining actual table group
2024-04-08 16:17:19 +02:00
Marco Belladelli
5c51ff93c6
HHH-17857 Add test for issue
2024-04-08 16:17:19 +02:00
Gavin King
ec8cdd9dbb
retain type use annotation in return types and simplify code
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-06 21:43:59 +02:00
Gavin King
4c1285b609
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-06 17:40:21 +02:00
Gavin King
baa24d6889
add a test and a comment
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-06 11:49:05 +02:00
Gavin King
e43ae41f2d
properly include repeatable annotations in @SupportedAnnotationTypes
...
this is required (see javadoc of Processor)
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-06 11:49:05 +02:00
Gavin King
b0368e7135
make Jakarta Data static metamodel into interfaces
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-05 23:52:21 +02:00
Gavin King
66838ef44b
add to tests
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-05 01:26:25 +02:00
Gavin King
15a2d5cb8b
validate that paginated query methods have a well-defined ordering
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-05 01:26:25 +02:00
Gavin King
a8f6872249
sync to latest spec and removal of sorting from PageRequest
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-05 01:26:25 +02:00
Gavin King
ceefdd162a
improve 'this' emulation for @Query methods
...
for Jakarta Data TCK work
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-05 01:26:25 +02:00
Gavin King
6b1b8d65ed
look for primary entity type in indirectly-implemented interfaces
...
for Jakarta Data TCK work
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-04 12:16:45 +02:00
Gavin King
ff0e676825
add tests reflecting things in Jakarta Data TCK
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-04 12:16:45 +02:00
Gavin King
e748619dd6
remove unnecessary code, fixing bug in generated imports
...
for Jakarta Data TCK work
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-04 12:16:45 +02:00
Christian Beikov
bcae77fb32
HHH-17885 Fix for same named attribute of different Embedded uses same selection expression
2024-04-04 09:24:22 +02:00
Christian Beikov
1fe26bc7f4
HHH-17885 Test for same named attribute of different Embedded uses same selection expression
2024-04-04 09:24:22 +02:00
Andrea Boriero
d18d925e10
HHH-17881 Unable to use a proxy as parameter in Query when the FK does not target the PK
2024-04-03 13:58:08 +02:00
Andrea Boriero
8c8e52eae9
HHH-17881 Add test for issue
2024-04-03 13:58:08 +02:00
Andrea Boriero
c6a9278599
HHH-16672 Locking entities created in the same transaction fails
2024-04-03 13:56:18 +02:00
Daniel Mensinger
ca2ae23f78
HHH-16672 test case
2024-04-03 13:56:18 +02:00
Gavin King
dcacbadd5f
tolerate Set + Collection for multivalued @Query parameters
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-03 12:56:22 +02:00
Marco Belladelli
cf4af826fe
HHH-17828 Special case for uninitialized enhanced proxies when locking
2024-04-03 09:54:21 +02:00
Daniel Mensinger
47d8bea6a4
HHH-17828 Add test for issue
2024-04-03 09:54:21 +02:00
Christian Beikov
b567483f9f
HHH-17908 Allow varchar for STRING enums on MySQL in schema validation
2024-04-02 16:43:30 +02:00
Christian Beikov
dba8a54692
HHH-17898 Throw error if non-lateral from-clause subquery uses outer from node
2024-04-02 16:41:59 +02:00
Marco Belladelli
37714a6b1a
HHH-17835 Custom ConvertedPrimitiveBasicTypeImpl type resolution
2024-04-02 12:48:17 +02:00
Marco Belladelli
50acce43c3
HHH-17835 Add test for issue
2024-04-02 12:48:17 +02:00
Gavin King
8992cbbbde
simplification, use getAllMembers() in processor
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 11:11:25 +02:00
Gavin King
f51d8dbe0d
support for queries defined in intermediate classes
...
for our work on the Jakarta Data TCK
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-04-02 11:11:25 +02:00
Gavin King
e21d139a84
fix to @OrderBy for @Query methods with primary entity type
...
don't think this is even strictly-speaking required by Jakarta Data
but we will allow it
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-31 20:58:49 +02:00
Gavin King
c7852feb55
fix another bug in detecting when a repo method param is multivalued
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-31 20:13:33 +02:00
Gavin King
38a41e0044
fix a bug in detecting when a repo method param is multivalued
...
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-31 20:13:33 +02:00
Gavin King
70f906045a
when CDI is missing, do still add an @Inject annotation on the constructor
...
at least when jakarta.inject is available
Signed-off-by: Gavin King <gavin@hibernate.org>
2024-03-31 14:52:41 +02:00