Commit Graph

1850 Commits

Author SHA1 Message Date
Jens Schauder
5a4ca13b8c Polishing.
See #2438
Original pull request #2439
2022-02-15 16:31:14 +01:00
jonyschak
02937e2b05 Correcting sort object reference in FetchableFluentQueryByExample.sortBy and FetchableFluentQueryByPredicate.sortBy
Closes #2438
Original pull request #2439
2022-02-15 16:31:14 +01:00
Diego Krupitza
0ccf4a148d Remove of useless throws ... in jUnit tests.
A lot of jUnit tests had in the method header a `throws` that is useless. For example `throws Exception` on a method where no exception is thrown. Removing this noice will make the tests more redable.

Original pull request #2433
2022-02-15 16:31:14 +01:00
Jens Schauder
0a3fb22860 Polishing.
Formatting.
Fix warnings.

See #2414
Original pull request #2419
2022-02-15 16:31:14 +01:00
Ernst-Jan van der Laan
6018c7c5f7 Support compound IdClass ID's when calling deleteAllByIdInBatch.
Convert ID's to entities and pass them to deleteAllInBatch.

Closes #2414
Original pull request #2419
2022-02-15 16:31:14 +01:00
Diego Krupitza
71c40f1f00 Remove unnecessary toString() call.
There were few explicit `toString()` calls that are not needed, since `toString()` will be called by default.

Original pull request #2431
2022-02-15 16:31:14 +01:00
Diego Krupitza
242adf5365 Removed unnecessary interface modifier in BeanDefinitionNames.
Original pull request #2432

All fields of an interface are by default `public static final`. To make the code more readable the redundancy is removed.
2022-02-15 16:31:14 +01:00
Jens Schauder
21e042460d Polishing.
Removed Given/When/Then comments.
They are of limited use, especially since it is debatable what belongs in which section.

See #2176
Original pull request #2401
2022-02-15 16:31:13 +01:00
Greg L. Turnquist
a7fd176643 Ignore fields with Optional.empty when performing Query by Example.
The Auditable interface introduces Optional getters, which when combined with Query by Example results in cryptic errors. By ignoring a probe's field that contains an Optional.empty, Query by Example works properly.

NOTE: This fix actually tests outside the originally detected scope of Auditable, verifying that ALL Optional.empty() fields are properly handled.

Closes #2176
Original pull request #2401
2022-02-15 16:31:13 +01:00
Greg L. Turnquist
2f13a5eb92 Update CI properties.
See #2407
2022-02-15 09:00:21 -06:00
Jens Schauder
0b94f0d78d Follow through with the split of CRUD repository and sorting repository.
Closes #2436
See spring-projects/spring-data-commons#2537
2022-02-11 11:31:16 +01:00
Mark Paluch
9b9cb5aff5 Polishing.
Extract artifactory credentials into properties file.

See #2413
2022-02-04 09:49:36 +01:00
Mark Paluch
1737389c7b Polishing.
Extract docker credentials into properties file.

See #2413
2022-02-04 09:39:18 +01:00
Greg L. Turnquist
428ddb3b40 Externalize build properties.
Closes #2413.
2022-02-04 09:36:43 +01:00
Oliver Drotbohm
892e4e5da2 Guard against Hibernate exposing non-embeddables as embeddables on versions > 5.4.21.
Hibernate 5.4.22 started including types managed by custom user types in the embeddables exposed via JPA's Metamodel API. This causes those to be considered types to explicitly map (read: unfold) in Spring Data REST. We now exposed a cleaned up view on this via a tweak in JpaPersistentPropertyImpl (ultimately in JpaMetamodel) looking for @Embeddable annotation on types allegedly considered embeddable by Hibernate.

Fixes #2421.
2022-01-26 23:02:58 +01:00
Greg L. Turnquist
881bfbda79 Fix 'noSuchProperty' test case.
The error message for nonexistent properties inside query derivation now wraps the named property with single quotes. This breaks a test case that was looking for spaces before and after.

Forward ported to 3.0.x

See #2418.
2022-01-25 10:50:38 -06:00
Oliver Drotbohm
621eb18dbd Polishing.
Indentation in testcases (spaces -> tabs). Additional imports.
2022-01-25 09:58:13 +01:00
Oliver Drotbohm
a1faffe4af Fix potential NullPointerException in JpaQueryCreator.
With the commit for GH-2363, we introduced an unguarded call to ReturnedType.getTypeToRead(), which could return null under certain conditions. Unfortunately Spring Data JPA dod not contain a test case that triggered that scenario.

This commit switches to ReturnedType.getReturnedType() which is non-nullable and lets us inspect the calls results for interfaces, which we need to create the JPA query properly.

Fixes GH-2408
2022-01-25 09:58:08 +01:00
Mark Paluch
408237b276 After release cleanups.
See #2402
2022-01-21 16:31:06 +01:00
Mark Paluch
ba1350429f Prepare next development iteration.
See #2402
2022-01-21 16:31:06 +01:00
Mark Paluch
ee9af38332 Release version 3.0 M1 (2022.0.0).
See #2402
2022-01-21 16:31:06 +01:00
Mark Paluch
0fd8737024 Prepare 3.0 M1 (2022.0.0).
See #2402
2022-01-21 16:31:06 +01:00
Jens Schauder
ba68e26e9d Fixes JavaDoc problems.
See #2232
2022-01-21 16:31:06 +01:00
Jens Schauder
d803ff7ede Remove Eclipse Non-Javadoc comments.
Closes #2397
2022-01-21 16:31:06 +01:00
Jens Schauder
5bc995c744 Adapt to changes in Spring Framework.
Test based on JNDI injection removed, along with the context configuration xml used by the test.
The classes used for mocking the JNDI context are no longer part of Spring Framework.

RequiredAnnotationBeanPostProcessor removed from configuration.
It's no longer provided by Spring Framework.

Closes #2385
2022-01-21 16:31:05 +01:00
Jens Schauder
033b4c7db4 Cleanup after rebase on 2.6 release.
See #2316, #2305, #2294 and #2269
2022-01-21 16:31:05 +01:00
Ayoub Rossi
ea51ee8c74 Change Java Persistence API to Jakarta Persistence API in documentation.
Original pull request #2325
2022-01-21 16:31:05 +01:00
Jens Schauder
0ae3d43502 Merge the Envers repo.
Spring Data JPA is now a multimodule project.
The artifacts build are still separate, except for the documentation which is now a single one.

Closes # 2316
2022-01-21 16:31:05 +01:00
Mark Paluch
c402cd9fe6 Refine CI triggers.
See #2307
2022-01-21 16:31:04 +01:00
Jens Schauder
ece2cc5d0a Migrate to Jakarta EE 9.
Closes #2305
2022-01-21 16:31:04 +01:00
Jens Schauder
4e3464fa5f Fix JavaDoc.
Closes #2314
2022-01-21 16:31:04 +01:00
Jens Schauder
bf2ae2baee Fix JavaDoc.
Closes #2314
2022-01-21 16:31:04 +01:00
Jens Schauder
696c8be00a Move baseline build to JDK17.
Closes #2312
2022-01-21 16:31:04 +01:00
Jens Schauder
f95aa6c1b8 Prepare Spring Data 3.0 branch.
Moves to spring-data-commons 3.0.0
Moves of deprecated and now removed AuditHandler constructor.
Set source version to 16 since the AspectJ-Maven-Plugin does not support Java 17 source yet.

Closes #2309
2022-01-21 16:31:04 +01:00
Jens Schauder
0842ff8c56 Remove ThreeTenBackPort support.
Closes #2311
2022-01-21 16:31:04 +01:00
Jens Schauder
7f0ec6f2f3 Remove usage of deprecated code.
Closes #2310
2022-01-21 16:31:04 +01:00
Mark Paluch
680cc4dec3 Use IdentifiableType.hasSingleIdAttribute() to detect IdClass presence to obtain IdClass attributes.
We now use IdentifiableType.hasSingleIdAttribute() to detect whether a type should have an IdClass. hasSingleIdAttribute is defined to return false if an IdClass is being used. It could also return false in case multiple identifier attributes are in place (composite Id) which is a bit of a grey area. At least we avoid using Hibernate-specific API.

Original pull request #2412
See #2330
Closes #2391
2022-01-21 16:11:11 +01:00
Christoph Strobl
1a3ba4c415 After release cleanups.
See #2406
2022-01-18 09:21:32 +01:00
Christoph Strobl
57efb53b7e Prepare next development iteration.
See #2406
2022-01-18 09:21:29 +01:00
Christoph Strobl
a9635ec23e Release version 2.7 M2 (2021.2.0).
See #2406
2022-01-18 09:09:34 +01:00
Christoph Strobl
c6a7b78553 Prepare 2.7 M2 (2021.2.0).
See #2406
2022-01-18 09:08:59 +01:00
Christoph Strobl
7fdee2fd29 After release cleanups.
See #2358
2022-01-14 11:08:02 +01:00
Christoph Strobl
183360818f Prepare next development iteration.
See #2358
2022-01-14 11:07:59 +01:00
Christoph Strobl
ea300487a5 Release version 2.7 M1 (2021.2.0).
See #2358
2022-01-14 10:58:16 +01:00
Christoph Strobl
cd0f6212e3 Prepare 2.7 M1 (2021.2.0).
See #2358
2022-01-14 10:57:50 +01:00
Jens Schauder
6bae3c5a48 Polishing.
Original pull request #2324
2022-01-12 15:51:58 +01:00
dk2k
65aa03f31c Minor changes based on FindBugs findings.
Original pull request #2324
2022-01-12 15:51:58 +01:00
Jens Schauder
08bcf5571f Polishing.
Corrected issue number comments.

See #2232
Original pull request #2398
2022-01-05 10:30:57 +01:00
Greg L. Turnquist
0926d4bfb6 Introduce JpaRepository.getReferenceById.
Introduce a repository method that makes it clear the return value is a reference. Deprecate the previous methods.

Closes #2232
Original pull request #2398
2022-01-05 10:30:57 +01:00
Jens Schauder
8c4123f6b2 Polishing.
Minor formatting.

See #2280
Original pull request #2399
2022-01-05 09:42:58 +01:00