Commit Graph

1923 Commits

Author SHA1 Message Date
Mark Paluch
4ffeeada50 Use snapshot and milestone repositories instead of libs-snapshot and libs-milestone.
Closes #2998
2023-06-06 10:04:21 +02:00
Mark Paluch
fe7193024b Polishing.
Reuse comment hint retrieval. Reorder methods. Inline methods and use fluent API where possible.

See #2991
Original pull request: #2995
2023-06-02 14:36:57 +02:00
Yanming Zhou
943e66d73b Add missing null check for metadata.
1. null check on variable `metadata` is missing in method `existsById`
2. `CrudMethodMetadata::getComment` should be `@Nullable`

Closes #2991
Original pull request: #2995
2023-06-02 14:36:30 +02:00
Greg L. Turnquist
87d28c55f7 Upgrade to Postgres 11 for integration testing.
Postgres stored procedures requires some adjustments in order to upgrade to Postgres 11.

See #2903
2023-05-30 11:18:26 -05:00
Mark Paluch
db28730626 Polishing.
Simplify code flow. Introduce flag to capture whether a stored procedure uses collection return types.

Remove unconditionally the Optional converter as we're already on Java 17 and do not require the Java 8 guard.

See #2915
Original pull request: #2938
2023-05-30 14:58:13 +02:00
Greg L. Turnquist
c09c73b866 Close StoredProcedureQuery if it implements AutoCloseable.
If the JPA provider's implementation of StoredProcedureQuery implements AutoCloseable, invoke the close method when completed.

Resolves #2915.
Original pull request: #2938
2023-05-30 14:58:13 +02:00
Mark Paluch
2bf749865b Polishing.
Remove unnecessary property declarations.

Original pull request: #2974
See #2973.
2023-05-26 10:27:18 +02:00
Greg L. Turnquist
79f343f1cf Migrate to org.codehaus.mojo:aspectj-maven-plugin.
Closes #2973.
Original pull request: #2974
2023-05-26 10:27:02 +02:00
Greg L. Turnquist
cb5141e4f1 Rewrite LIKE clauses with wildcards as CONCAT functions.
We support wrapping parameters (named or positional) with optional wildcards when doing LIKE patterns. This is out-of-band and requires moving the wildcards into the bindings. To stop doing this and causing race conditions, we can instead rewrite the queries using the CONCAT function. This function is standard across relational database (native queries) as well as JPA providers (Hibernate and EclipseLink).

See #2939
See #2760
Original Pull Request: #2940
Superceding Pull Request: #2944
2023-05-15 12:54:53 -05:00
Christoph Strobl
a52bfba782 After release cleanups.
See #2918
2023-05-12 11:11:32 +02:00
Christoph Strobl
aa81cd3f57 Prepare next development iteration.
See #2918
2023-05-12 11:11:30 +02:00
Christoph Strobl
7b8bfaaf31 Release version 3.0.6 (2022.0.6).
See #2918
2023-05-12 11:08:06 +02:00
Christoph Strobl
d75e19325e Prepare 3.0.6 (2022.0.6).
See #2918
2023-05-12 11:07:46 +02:00
Mark Paluch
b9bd0e70e0 Document that JpaSpecificationExecutor.delete(…) uses CriteriaDelete and hence Cascades are not considered.
Closes #2936
2023-05-10 10:44:40 +02:00
Greg L. Turnquist
3a1812ca6b Create a Testcontainers image name resolver to support CI proxy usage.
Resolves #2941.
Original pull request: #2937.
2023-05-05 14:58:27 -05:00
Greg L. Turnquist
9c04966975 Introduce conditional testing for Hibernate.
Certain test cases should be disabled based on the version of Hibernate. We should also run the entire test suite against both Hibernate 6.1 and 6.2, to ensure maxiumum support.

Resolves #2921.
Related: #2927.
2023-04-28 16:01:21 -05:00
Oliver Drotbohm
13bb22cdbc Avoid strong proxy checks in test case for identifier access.
Under still to clarify circumstances a class processed by Hibernate might result in proxies *not* created for a otherwise proxied relationship. So far, our tests have relied on those cases always return a proxy reliably but some optimizations in Hibernate 6.2 (likely [0]) don't allow creating proxies reliably.

Until we find a better way to reliably create a proxy we back off from strictly checking whether we deal with a proxy.

Related tickets: #2899.

[0] https://hibernate.atlassian.net/browse/HHH-15790
2023-04-28 16:01:17 -05:00
Fouad Almalki
1d3c8a224c Backport support for Hibernate 6.2.
Move off deprecated Hibernate Postgres 9.1 dialect.

Switch order of persistence provider dependencies. Hibernate 6.2 needs to be declared before Eclipselink as the latter pulls in JPA 3.0 but the former now strongly requires 3.1.

Related tickets: #2899.
2023-04-26 15:13:36 -05:00
Greg L. Turnquist
f91168d663 Drop hibernate-next profile.
Hibernate is not publishing snapshots for 6.1 or 6.2, so there is no need to keep this profile in our build system.

Resolves #2923.
2023-04-24 13:44:06 -05:00
Greg L. Turnquist
3f4dc40dcb Upgrade to Hibernate 6.1.7.Final.
Resolves #2922.
2023-04-24 11:48:10 -05:00
Jens Schauder
957629923a Pagination now supports sorting by property.
Closes https://github.com/spring-projects/spring-data-envers/issues/379
Original Pull Request https://github.com/spring-projects/spring-data-envers/pull/
2023-04-18 15:51:36 +02:00
Jens Schauder
0348c680d1 Added missing null check for metadata.
See #2716
Closes #2897
2023-04-18 10:29:04 +02:00
Greg L. Turnquist
ef662f2300 After release cleanups.
See #2872
2023-04-14 10:25:03 -05:00
Greg L. Turnquist
9d6a7504b3 Prepare next development iteration.
See #2872
2023-04-14 10:24:57 -05:00
Greg L. Turnquist
528cec8dc8 Release version 3.0.5 (2022.0.5).
See #2872
2023-04-14 10:19:12 -05:00
Greg L. Turnquist
a609429773 Prepare 3.0.5 (2022.0.5).
See #2872
2023-04-14 10:18:28 -05:00
Mark Paluch
806e02b56b Adopt to changed Hibernate behavior returning domain types using tuple queries.
We now allow using the domain type when it is returned from a tuple query. This allows projections if the return value is not a Map.

Closes #2815
2023-04-12 11:32:27 +02:00
Greg L. Turnquist
884a589e22 Test against Java 20 in CI.
Resolves #2892.
2023-04-11 11:21:44 -05:00
Mark Paluch
a9e8537eef Remove superfluous plugin repository declaration.
See #2872
2023-04-06 17:07:01 +02:00
Mark Paluch
2cd6334329 Upgrade to Maven Wrapper 3.9.1.
See #2906
2023-04-06 16:17:25 +02:00
Mark Paluch
f7bcdeac0b Adopt to upgraded dependencies.
Closes #2798
2023-03-30 10:51:33 +02:00
Greg L. Turnquist
ac5b3951cb Polishing. 2023-03-29 10:25:50 -05:00
Greg L. Turnquist
454a48cd94 Update CI properties.
See #2872
2023-03-28 14:00:58 -05:00
Mark Paluch
e76a94e838 Polishing.
Simplify tests.

See #2884
Original pull request: #2891
2023-03-28 09:53:08 +02:00
Greg L. Turnquist
dc89da4d08 Support functions that have semicolons as arguments.
A native SQL function with ';' as an argument, e.g. listagg(a.b, ';'), will fail to find anything after it (like an alias). By adding ';' to the list of approved function tokens, queries with functional aliases will work properly.

Resolves #2884.
Original pull request: #2891
2023-03-28 09:52:32 +02:00
Christoph Strobl
f45f534a57 Add missing reflection configuration for AbstractPersistable & -Auditable.
Resolves #2735.
2023-03-22 16:29:34 -05:00
Christoph Strobl
31db4aaf31 Add required runtime hint for streaming results.
This commit makes sure we're able to invoke the method required for streaming results.

Resolves: #2848
2023-03-22 16:11:06 -05:00
Mark Paluch
c1c014a374 Polishing.
Add since tag.

See #2796
2023-03-21 11:46:06 +01:00
Mark Paluch
a66f67506a Leniently accept null when calling delete(Specification).
Closes #2796
2023-03-21 11:35:53 +01:00
Christoph Strobl
0314115c39 After release cleanups.
See #2838
2023-03-20 14:26:20 +01:00
Christoph Strobl
f38c1b59ad Prepare next development iteration.
See #2838
2023-03-20 14:26:19 +01:00
Christoph Strobl
2f7b87fec4 Release version 3.0.4 (2022.0.4).
See #2838
2023-03-20 14:22:48 +01:00
Christoph Strobl
dc34d6018d Prepare 3.0.4 (2022.0.4).
See #2838
2023-03-20 14:22:20 +01:00
Claudio Nave
5055252ece Fix small typo in the transactionality section of the documentation.
Fixes #2869.
2023-03-19 15:31:56 +01:00
Oliver Drotbohm
edef7d70c7 Improve docs on transactionality of methods declared on repository interfaces.
We're now more specific on what CRUD methods means in the context of transactional query methods. Also, we now mention default methods explicitly in the discussion of query methods.

Fixes #2868.
2023-03-19 12:49:04 +01:00
Mark Paluch
03b3516f33 Polishing.
Reduce method visibility. Improve method naming. Avoid using var in production code.

See #2857
Original pull request #2859
2023-03-15 15:27:16 +01:00
Jens Schauder
b3943a6e50 Polishing.
Removed instanceof assert.

See #2857
Original pull request #2859
2023-03-15 14:29:39 +01:00
Jens Schauder
fff09c0993 Polishing.
Renamed to unwrapDate to align with the changes from #2861.
Minor JavaDoc adjustments

See #2857
Original pull request #2859
2023-03-15 12:38:16 +01:00
Greg L. Turnquist
cf97015aa5 Allow JpaParametersParameterAccessor to extract dates from parameters.
This allows the Hibernate variant (HibernateJpaParametersParameterAccessor) to potentially unwrap TypedParameterValue.

Closes #2857
Original pull request #2859
2023-03-15 12:38:16 +01:00
Jens Schauder
e853a7a3a0 Polishing.
TypedParameterValue class only gets loaded once.
Renamed the method to better capture its behaviour.

See #2860
See #2861
2023-03-15 12:14:30 +01:00