Commit Graph

2240 Commits

Author SHA1 Message Date
John Blum
c4a616149b Release version 3.2 RC1 (2023.1.0).
See #3164
2023-10-13 08:44:25 -07:00
John Blum
de2373ba3b Prepare 3.2 RC1 (2023.1.0).
See #3164
2023-10-13 08:43:54 -07:00
Christoph Strobl
35dc37124f Restore ci properties.
Restore recently dropped ci properties.
2023-10-05 09:07:02 +02:00
John Blum
5bb474386b Update CI properties.
See #3164
2023-10-04 17:24:10 -07:00
John Blum
8923704eb4 Upgrade to Maven Wrapper 3.9.5.
See #3182
2023-10-04 16:58:05 -07:00
Mark Paluch
867de7d8cf Upgrade to OpenWebBeans 4.0.
Closes #3179
2023-09-29 09:27:06 +02:00
Mark Paluch
1d49fe9271 Polishing.
Simplify PersistenceProvider by removing PresenceDetector interface. Refine presence detection to make present field final. Add warning suppressions as we know that we duplicate code (similar code) and that ANTLR doesn't generate methods with nullable annotations.

See #3170
Original pull request: #3176
2023-09-28 11:37:58 +02:00
Greg L. Turnquist
dde9e07c24 Implement EQL parser.
Implement support for EclipseLink Query Language (EQL), handling the various extensions it offers.

Closes #3170
Original pull request: #3176
2023-09-28 11:37:58 +02:00
Mark Paluch
ae12c1cb05 Polishing.
Reformat code, add ticket references to test methods.

See #3137
Original Pull Request: #3173
2023-09-27 10:53:07 +02:00
Julia
814d214a27 Restrict TypedParameterValue usage to native queries only.
Use Hibernate parameter accessor for native queries only to avoid affecting JPQL queries.

Co-locate Hibernate-specific parameters accessor as the same package as JPA parameters accessor.
Remove Parameter Accessor reference from Persistence Provider since it's created in AbstractJpaQuery.

Closes #3137
Original Pull Request: #3173
2023-09-27 10:53:04 +02:00
Oliver Drotbohm
7cdf53f184 Upgrade build to Hibernate 6.3.1.
Fixes #3166.
2023-09-19 21:36:05 +02:00
Mark Paluch
6580fd7913 After release cleanups.
See #3119
2023-09-15 11:33:22 +02:00
Mark Paluch
11ab43501b Prepare next development iteration.
See #3119
2023-09-15 11:33:20 +02:00
Mark Paluch
1b50d23b9f Release version 3.2 M3 (2023.1.0).
See #3119
2023-09-15 11:30:14 +02:00
Mark Paluch
bfbbc3460e Prepare 3.2 M3 (2023.1.0).
See #3119
2023-09-15 11:29:20 +02:00
Eric Haag
0277f079d2 Connect build to ge.spring.io.
This change publishes a build scan to ge.spring.io for every local build from an authenticated Spring committer and for CI where appropriate access tokens are available. The build will not fail if publishing fails.

This change also allows the build to benefit from local and remote build caching, providing faster builds for all contributors.

Additionally, the project will have access to all features of Gradle Enterprise such as:

- Dashboards to view all historical build scans, along with performance
   trends over time
- Build failure analytics for enhanced investigation and diagnosis of
   build failures
- Test failure analytics to better understand trends and causes around
   slow, failing, and flaky tests

See #3142
2023-09-13 14:13:13 -05:00
Greg L. Turnquist
c6f9186d70 Fetch HQL from Hibernate using a different API.
See #3085
2023-09-12 11:05:24 -05:00
jeomxon
b077d645dc Rename em as entityManager in SimpleJpaRepository.
See #3120
2023-09-08 11:53:42 -05:00
Greg L. Turnquist
4c66e7adb4 Make POWER a valid token as an identifier for JPQL and HQL.
See #3143
2023-09-08 11:53:08 -05:00
Greg L. Turnquist
f009e42c4f Polishing.
Move version settings into properties to consolidate and ease making updates.

Related: #3146
2023-09-08 09:25:54 -05:00
Mark Paluch
0aee918c79 Polishing.
Refine navigation structure.

See #3080
2023-09-08 10:50:55 +02:00
Mark Paluch
065500d981 Delete docs build trigger.
See #3123
2023-09-08 09:21:17 +02:00
Oliver Drotbohm
895d60c969 Upgrade Hibernate 6.3 build profile to enable integration builds against latest snapshots.
Related ticket: #3146.
2023-09-08 08:04:19 +02:00
Greg L. Turnquist
3b8556bcf4 Polishing.
See #3134
2023-09-05 08:51:58 -05:00
shin-mallang
a4977b2a6f Polishing a switch statement.
See #3134
2023-09-05 08:51:55 -05:00
shin-mallang
20cef9afd6 Polish code using instanceof pattern matching.
See #3134
2023-09-05 08:51:07 -05:00
Greg L. Turnquist
e5ec1aa0d3 NEW should be legal as a token in a state field path expression in JPQL.
A multi-node token that has NEW as one of its elements should work just fine in a JPQL query.

See #3128
2023-08-28 12:35:14 -05:00
Mark Paluch
c7d403a37a Correctly validate mixed parameter bind marker usage.
We now inspect individual parameters instead of the resulting query whether the query contains JDBC-style bind markers. Previously, we inspected the final (rewritten) query which might have contained question marks in literals leading to improper validation failures.

Closes #3125
2023-08-25 09:32:54 +02:00
Mark Paluch
d7be8ec97f Register individual bindings for IN bindings if parameter is already bound differently.
We now register a new parameter binding if the named/positional parameter is already bound in an incompatible style.

Closes #3126
2023-08-25 09:16:06 +02:00
Mark Paluch
b47a340c0d Restructure content to include partials from Commons.
See #3080
2023-08-23 10:39:36 +02:00
Mark Paluch
016be28e79 Use Antora-configuration profiles.
Move Antora content to src/main/antora

Closes #3123
2023-08-21 14:33:56 +02:00
Rob Winch
68f714917b Use io.spring.maven.antora plugins.
- Switch to io.spring.maven.antora plugins
- Move Antora to spring-data-jpa modulen. Placing in parent folder
  means that each module will also have the Antora plugin applied to it
  and the antora task will fail on those modules.

See #3094
2023-08-18 16:48:04 -05:00
Julia Lee
d6bd5711b7 After release cleanups.
See #3071
2023-08-18 08:59:39 -04:00
Julia Lee
f23115b6eb Prepare next development iteration.
See #3071
2023-08-18 08:59:35 -04:00
Julia Lee
851ad8b490 Release version 3.2 M2 (2023.1.0).
See #3071
2023-08-18 08:50:31 -04:00
Julia Lee
e48dd1cd09 Prepare 3.2 M2 (2023.1.0).
See #3071
2023-08-18 08:49:38 -04:00
Julia
df6623158a Update CI properties.
See #3071
2023-08-14 12:19:00 -04:00
Julia Lee
231942955e Upgrade to Maven Wrapper 3.9.4.
See #3114
2023-08-14 08:53:19 -04:00
Greg L. Turnquist
a82a8cadcc Polishing.
See #3080
2023-08-10 10:52:38 -05:00
Greg L. Turnquist
553467fd64 Test against Hibernate 6.3 on CI.
See #3106
2023-08-09 16:35:27 -05:00
Sergey Rukin
accc5c3168 Add 'since' headers to Specification javadocs.
See #3102, #3089
2023-08-04 14:47:15 -05:00
Greg L. Turnquist
7e7b050cf1 HQL function names should support schema-based prefixes.
See #3099
2023-08-04 10:26:14 -05:00
Greg L. Turnquist
7eeca108f4 TIME should be valid parameter name for JPQL queries.
See #3093
2023-08-02 14:20:44 -05:00
Greg L. Turnquist
10c26d24ef FROM and DATE should be usable as parameters in JPQL queries.
See #3092
2023-08-02 13:41:19 -05:00
Greg L. Turnquist
972b26c6f2 Verify that mismatched return types are caught.
Verify that when a return type doesn't match the query's type, an exception is thrown.

See #1184
2023-07-26 16:50:46 -05:00
Greg L. Turnquist
90807ffe23 Make SpEL behavior consistent.
See #1597
2023-07-26 15:13:22 -05:00
Greg L. Turnquist
2b4024a039 Upgrade to EclipseLink 4.0.2.
See #2900
2023-07-25 15:50:29 -05:00
Greg L. Turnquist
fa5ad90ff7 Polishing.
See #3041
2023-07-21 13:54:37 -05:00
Mark Paluch
2cd3aca078 Ensure correct bindings for parameter reuse.
We now verify all bindings to ensure that a like-parameter doesn't mix up with plain bindings (e.g. firstname = %:myparam or lastname = :myparam). We also create unique synthetic parameters for positional bindings.

Also, fix Regex to properly detect named, anonymous and positional bind markers.

See #3041
2023-07-21 13:54:28 -05:00
Mark Paluch
55813a867a Revise String Query ParameterBinding.
We now distinguish between the binding parameter target and its origin. The parameter target represents how the binding is bound to the query, the origin points to where the binding parameter comes from (method invocation argument or an expression).

The revised design removes the assumption that binding parameters must match their indices/names of the method call to introduce synthetic parameters for different binding variants while using the same underlying invocation parameters.

See #3041
2023-07-21 13:54:21 -05:00