Commit Graph

2243 Commits

Author SHA1 Message Date
Christoph Strobl
b7fd665919 Create ParameterBindings for count query instead of reusing query bindings.
This commit makes sure we create individual parameter bindings for the count query instead of reusing the bindings from the actual query. This ensures we do not miss bindings that are present only in the count query.

Closes: #3293
Original pull request: #3339
2024-02-13 11:00:13 +01:00
Christoph Strobl
4a4f565888 Upgrade to Hibernate 6.4.4.
Closes: #3358
2024-02-09 08:30:00 +01:00
Christoph Strobl
017b8c32a7 Upgrade to Hibernate 6.4.3.
Closes: #3350
2024-02-06 12:54:55 +01:00
Christoph Strobl
9c5d611f2b Fix query rendering for signed expressions & literals.
This commit makes sure to retain signed expressions (hql, eql, jpql) and literals (eql, jpql) when rendering the query.
Prior to the change singed expression/literal rendering added a space between the sign and the actual value so that `-1` would become `- 1` and `-count(u)` would be `- count(u)`.
Additionally a minor glitch in the jpql rendering was resolved that would add an extra space before the closing bracket of a LENGTH expression.

See: #3342
2024-02-01 11:17:14 +01:00
Christoph Strobl
a364c4a0a5 Polishing
Add issue reference to test and provide additional test cases.

Original Pull Request: #3343
2024-02-01 11:16:43 +01:00
Shigeru Hagiwara
6f8f63a74a Fix hql rendering for signed numeric literals.
This commit fixes an issue where an extra space is added between the sign and the actual value of signed numerics.

Closes: #3342
Original Pull Request: #3343
2024-02-01 11:14:49 +01:00
Eduard Dudar
8745b46dc7 Fix count query creation when order by clause contains newlines.
Closes: #3329
Original Pull Request: #3330
2024-02-01 09:33:43 +01:00
Christoph Strobl
4c6ffa9dc5 Add count query creation test.
See: #3324
2024-02-01 09:33:43 +01:00
Pranav
b6d4306e0d Fix count query creation for simple select.
Closes: #3324
Original Pull Request: #3325
2024-02-01 09:33:42 +01:00
Mark Paluch
57d0b11a34 Refine Artifactory build name.
See #3229
2024-01-31 15:17:38 +01:00
Yanming Zhou
9912e485ed Remove unnecessary javadoc from test code if method signature is self-described
Closes: #3332
2024-01-30 12:53:12 +01:00
Christoph Strobl
9a0a99450a Polishing.
Update javadoc.

Original Pull Request: #3334
2024-01-30 12:53:11 +01:00
birariro
a918f49a29 Update javadoc and remove unused variable.
Closes: #3334
2024-01-30 12:53:11 +01:00
Mark Paluch
ea9700e1a9 Polishing.
Align Readme with correct artifact coordinates.

See #3312
2024-01-30 11:16:48 +01:00
Christoph Strobl
00c82766cb Polishing.
Reduce code duplication.

Original Pull Request: #3248
2024-01-29 12:09:19 +01:00
Yanming Zhou
c5aa790e39 Upgrade to JSqlParser 4.8
Closes: #3340
Original Pull Request: #3248
2024-01-29 12:09:18 +01:00
Christoph Strobl
6063c73d5d Upgrade to EclipseLink 3.0.4
Closes: #3338
2024-01-29 08:14:01 +01:00
Christoph Strobl
5b28510304 Upgrade to Hibernate 6.4.2
Closes: #3337
2024-01-29 08:13:18 +01:00
devholic22
699d3a2e57 Polishing.
Fix "transaparent" to "transparent" in application-context.xml. Remove superfluous braces.

Closes #3327
2024-01-22 09:06:35 +01:00
Mark Paluch
2909337cf7 Polishing.
Suppress debug output during test execution.

See #3277
Original pull request: #3280
2024-01-10 14:23:32 +01:00
Christoph Strobl
a12e3e4c7f Update JPQL grammar to support F and D suffixes.
See #3277
Original pull request: #3280
2024-01-10 14:23:32 +01:00
Christoph Strobl
6d73fbc5f3 Fix EQL parsing for MOD expression.
The samples used to validate MOD parsing in tests does not comply with the specification and falsely uses '/' instead of ',' as delimiter.

Definition is: expression ::= MOD(arithmetic_expression, arithmetic_expression)

See: https://eclipse.dev/eclipselink/api/4.0/eclipselink/org/eclipse/persistence/jpa/jpql/parser/ModExpression.html

Closes #3277
Original pull request: #3280
2024-01-10 14:23:32 +01:00
Christoph Strobl
148beae6f3 Fix JPQL long literal parsing.
Closes #3308
Original pull request: #3280
2024-01-10 14:23:32 +01:00
Mark Paluch
5f924440b7 Extend license header copyright years to 2024.
See #3291
2024-01-02 14:41:38 +01:00
Mark Paluch
9c578632f2 Add custom ANTLR template to avoid Maven Replacer plugin.
Closes #3285
2023-12-28 10:11:44 +01:00
Mark Paluch
8eee9c52f9 Polishing.
Move AspectJ dependency from test into optional. Add annotation processor paths to compiler plugin for discovery by Gradle Enterprise.
Rollback replacer/conditional antlr paths.

See #3282
2023-12-27 10:00:36 +01:00
Alexander Kriegisch
4b1ea8c5df Get rid of 'forceAjcCompile' workaround and special includes.
by separation of concerns: Let
  - Maven Compiler do annotation processing without compilation and
  - AspectJ Maven compilation of all Java sources and aspects without
    annotation processing.

Actually, we could let AJ Maven do all the work, but it would be
difficult to configure everything correctly in JDK 9+, because AJ Maven
is incomplete regarding automatically putting everything on the right
module paths. so, this separation of concerns saves tedious
configuration work.

Relates to https://github.com/mojohaus/aspectj-maven-plugin/issues/15.

See #3282
2023-12-27 09:58:58 +01:00
Alexander Kriegisch
40c5f44161 Compile-time weaving requires aspectjrt, not aspectjweaver.
Aspect-enhanced classes need aspectjrt on the class path. If it is not,
the AspectJ Compiler usually complains, either warning or even
failing the build, also via AspectJ Maven. The aspectjweaver, however,
is for load-time weaving. It is a superset of aspectjrt, but bigger than
necessary. Also, the weaver was only test-scoped, but also during normal
runtime aspectjrt is necessary. Without it, it can only work by the
lucky chance that Spring already depends on aspectjweaver, which is not
good dependency management. Each Maven module should be self-consistent.

Aspectjrt was a plugin dependency for AJ Maven, which is also
superfluous, because aspectjtools already is a superset of
aspectjweaver, i.e. it also contains aspectjrt. Hence, aspectjtools is
all AJ Maven needs, but the compiled application is who really
needs aspectjrt.

See #3282
2023-12-27 09:58:47 +01:00
EdoardoP92
b3312deb00 Update SECURITY.adoc markup.
Update section markup to AsciiDoc.

Closes: #3273
2023-12-18 08:10:11 +01:00
Mark Paluch
c9442a23d5 Update CI properties.
See #3229
2023-12-14 08:50:30 +01:00
Mark Paluch
aa8a8a9ac6 Upgrade to Maven Wrapper 3.9.6.
See #3268
2023-12-14 08:40:35 +01:00
Christoph Strobl
688e78b851 Render entire statement after applying sort.
This commit makes sure to render the entire statement after applying the sort expression via the QueryEnhancer. Previously only parts, the actual statement body, had been considered.

Closes: #3263
Original Pull Request: #3264
2023-12-12 15:25:42 +01:00
Mark Paluch
42a20a0c15 Add assertion to verify Hibernate vs. our ANTLR versions.
See #3262
2023-12-08 16:23:38 +01:00
Mark Paluch
94da1837d4 Adopt JpaParameters to reflect the actual parameter type when using generics.
Closes #3254
2023-12-08 11:20:21 +01:00
Mark Paluch
970b7f0312 Disable Gradle Enterprise scanning for clean run.
See #3240
2023-11-29 11:30:05 +01:00
Mark Paluch
bac05b7392 Upgrade to Antlr 4.13.0.
Align with Hibernate 6.4.0.

See #3239
2023-11-24 10:26:44 +01:00
Mark Paluch
bffd7cf34e Introduce property for Jenkins user and Artifactory server details.
Closes #3240
2023-11-24 10:17:04 +01:00
Mark Paluch
9dc87933e5 Upgrade to Hibernate 6.4.
Closes #3239
Original pull request: #3201
2023-11-24 08:50:12 +01:00
Oliver Drotbohm
6df5bd7685 Add build profile for Hibernate 6.4 snapshots.
Original pull request: #3201
See #3239
2023-11-24 08:49:53 +01:00
Runbing
adaae1c040 Fixed the URL for the Spring Data Commons documentation.
I fixed an incorrect URL in the **antora.yml** file that was preventing other pages from linking to the Spring Data Commons documentation.

Closes #3232
2023-11-20 11:33:00 +01:00
Mark Paluch
83cb82ba07 After release cleanups.
See #3197
2023-11-17 14:33:26 +01:00
Mark Paluch
21d307db3f Prepare next development iteration.
See #3197
2023-11-17 14:33:24 +01:00
Mark Paluch
76a03e2d06 Release version 3.2 GA (2023.1.0).
See #3197
2023-11-17 14:29:58 +01:00
Mark Paluch
c38b8ac2c3 Prepare 3.2 GA (2023.1.0).
See #3197
2023-11-17 14:28:28 +01:00
Greg L. Turnquist
0aa5be8ba2 Properly handle EXTRACT function in HQL.
HQL's extract function supports things like "day of week", "day of month", and "week of year". Extend support to these alternate expressions.

See #3219.
2023-11-06 10:59:02 -06:00
Greg L. Turnquist
018c2acd86 Polishing. 2023-10-19 16:33:05 -05:00
Greg L. Turnquist
c2b77606b7 Change from Gradle Enterprise to Develocity.
Gradle Enterprise has been rebranding as Develocity.

See #3197.
2023-10-19 10:03:39 -05:00
Greg L. Turnquist
6b07163a5f Update CI properties.
See #3197
2023-10-19 09:38:55 -05:00
Jens Schauder
685107d4e1 Improved documentation of deleteAllInBatch.
Closes #3198
2023-10-17 12:46:38 +02:00
Greg L. Turnquist
5c244e1f54 Update CI properties.
See #3197
2023-10-16 13:28:20 -05:00