1734 Commits

Author SHA1 Message Date
Yanming Zhou
f9f78d58b4 Limit single finders max results to 2 for performance.
Closes #2594
Original pull request #2604
2022-12-05 12:59:58 -06:00
Mark Paluch
32e38d8d75 After release cleanups.
See #2666
2022-11-18 10:35:10 +01:00
Mark Paluch
29cc2e3a16 Prepare next development iteration.
See #2666
2022-11-18 10:35:08 +01:00
Mark Paluch
34a6e57cb1 Release version 2.6.10 (2021.1.10).
See #2666
2022-11-18 10:22:09 +01:00
Mark Paluch
03ec18529e Prepare 2.6.10 (2021.1.10).
See #2666
2022-11-18 10:21:04 +01:00
Spring Builds
c084a9d195 After release cleanups.
See #2663
2022-10-13 12:37:04 +00:00
Spring Builds
cbdbb2bae0 Prepare next development iteration.
See #2663
2022-10-13 12:36:51 +00:00
Spring Builds
8212334312 Release version 2.6.9 (2021.1.9).
See #2663
2022-10-13 11:54:13 +00:00
Spring Builds
14ffa14871 Prepare 2.6.9 (2021.1.9).
See #2663
2022-10-13 11:51:32 +00:00
Spring Builds
e873674e68 After release cleanups.
See #2637
2022-10-13 07:52:04 +00:00
Spring Builds
0595d83fd3 Prepare next development iteration.
See #2637
2022-10-13 07:51:50 +00:00
Spring Builds
2c4e59ed94 Release version 2.6.8 (2021.1.8).
See #2637
2022-10-13 07:28:18 +00:00
Spring Builds
1e8aa1f21f Prepare 2.6.8 (2021.1.8).
See #2637
2022-10-13 07:25:50 +00:00
Greg L. Turnquist
5f14859827 Update class-based DTO notes in reference docs.
Closes #2558.
Related: #2635.
2022-09-29 11:54:53 -05:00
Greg L. Turnquist
c116755c05 Polishing.
Also added more test cases from related pull requests.

Closes #2582.
Related: #2563, #2557, #2603
2022-09-29 09:22:51 -05:00
Chris Fraser
1ae67c8118 Handle multiline subquery removal.
Closes #2582.
Related: #2563, #2557, #2603
2022-09-29 09:22:43 -05:00
Spring Builds
02f155c2ad After release cleanups.
See #2597
2022-09-19 09:04:51 +00:00
Spring Builds
2b4a9a38ef Prepare next development iteration.
See #2597
2022-09-19 09:04:38 +00:00
Spring Builds
323d28933a Release version 2.6.7 (2021.1.7).
See #2597
2022-09-19 08:40:16 +00:00
Spring Builds
010cb6ac27 Prepare 2.6.7 (2021.1.7).
See #2597
2022-09-19 08:37:57 +00:00
Christoph Strobl
373828daba After release cleanups.
See #2573
2022-07-15 10:47:35 +02:00
Christoph Strobl
45c3566f96 Prepare next development iteration.
See #2573
2022-07-15 10:47:31 +02:00
Christoph Strobl
f68a83a119 Release version 2.6.6 (2021.1.6).
See #2573
2022-07-15 10:34:16 +02:00
Christoph Strobl
2f6bc3c6e3 Prepare 2.6.6 (2021.1.6).
See #2573
2022-07-15 10:33:36 +02:00
Greg L. Turnquist
61ea0086e9 Upgrade Hibernate to 5.6.9.Final.
Closes #2583.
2022-06-28 14:05:49 -05:00
Mark Paluch
ac49e679f5 After release cleanups.
See #2493
2022-06-20 11:12:22 +02:00
Mark Paluch
fb11bf1f00 Prepare next development iteration.
See #2493
2022-06-20 11:12:19 +02:00
Mark Paluch
e1fd836784 Release version 2.6.5 (2021.1.5).
See #2493
2022-06-20 10:59:10 +02:00
Mark Paluch
29f1f440c1 Prepare 2.6.5 (2021.1.5).
See #2493
2022-06-20 10:58:42 +02:00
Greg L. Turnquist
bfdcd50bdf Drop links to changelog.txt from README.
Closes #2569.
2022-06-15 13:51:53 -05:00
Greg L. Turnquist
d35783978c Ensure that single-parameter DTOs work with JPQL queries.
Closes #1869.
2022-06-14 09:43:07 -05:00
Mark Paluch
f8737e33cb Upgrade to Maven Wrapper 3.8.5.
See #2562
2022-06-03 09:42:20 +02:00
Mark Paluch
5913140d23 Update CI properties.
See #2493
2022-06-03 09:35:43 +02:00
Greg L. Turnquist
00d1d254d1 Fine tune checks for JDBC and JPA style parameters.
The checks for JDBC and JPA parameters were sloppy and based on side effects. By using zero width lookaheads, we can precisely spot situtations where the user has both types of parameters. Otherwise, let the query on through to the JPA provider.

Closes #2551.
2022-05-31 15:39:36 -05:00
Conor McGale
9d5f0fe550 Fixes broken link to 'Accessing JPA Data with REST' guide.
Original pull request #2550
2022-05-31 14:24:14 +02:00
Greg L. Turnquist
b2f891f53c Fix order by clauses for functions with positional and named arguments.
Related: #2045.

Closes #425.
2022-05-19 17:20:17 -05:00
Greg L. Turnquist
a85284880b Better parse 'order by' clauses to handle subqueries.
By properly parsing "order by" clauses, Spring Data JPA can apply sorting parameters to the end of queries in the event of complex queries that involve nested subselects.

Closes ##2496, #2522, #2537, #2045.
2022-05-19 15:29:42 -05:00
Greg L. Turnquist
dc37395ff9 JpaQueryLookupStrategy shouldn't use exceptions for flow control.
By using exceptions for flow control, other critical exceptions are getting masked. The lack of a resolvable query should instead leverage some sort of null value object.

See #2018.
2022-05-18 17:17:05 -05:00
John Blum
cf2204c797 Remove Docker Registry login.
Closes #2533.
2022-05-16 11:47:17 -07:00
Greg L. Turnquist
a2262a7718 Verify custom finders can handle PageRequest as method parameter.
Spring Data Commons patched handling subclasses of special parameter types through https://github.com/spring-projects/spring-data-commons/issues/2626. This commit adds test cases ensuring things work properly with Spring Data JPA.

See #2013.
2022-05-12 14:47:33 -05:00
evgeny.bovykin
307e8fce11 Fix debug logging in MergingPersistenceUnitManager.
A String.format token was missing, so `mappingFileName` was printed instead of a `persistenceUnitName`, and `persistenceUnitName` wasn't actually printed at all.

See #2526.
2022-05-10 16:53:51 -05:00
Darin Manica
cd27f03915 Fix case where the from clause is misidentified.
Add a zero-width word boundary to the regex that identifies the from clause. This is used in alias detection.

See #2508, #2260.
2022-05-05 10:09:41 -05:00
Bajohr, Rayk
28a22830bd Update Maven project meta information.
See #2506.
2022-05-04 13:54:17 -05:00
Greg L. Turnquist
c1a07d5acd Polishing.
See #2260 (c93aa25), #2500, #2518.
2022-05-04 11:38:14 -05:00
Darin Manica
44406b0ffc Correctly handle order by aliases.
In order to correctly identify aliases in the order by clause, we cannot process the from clauses left-to-right using regular expressions. These must be removed inner-to-outer. Commit c93aa25 resulted in a bug where the subquery would be incorrectly identified as the alias, as by the following query:

```
from Parent p join p.children c where not c.id not in (select c2.id from Child c2)
```

Passing in a Sort.by("name") would result in "order by c2.name" instead of "order by p.name". Thus, it was using the alias of the inner query instead of the outer query. [This comment](https://github.com/spring-projects/spring-data-jpa/issues/2260#issuecomment-929510358) suggests removing the content of the inner query, with the caveat of the entire query being surrounded by parenthesis. This commit does exactly that, by removing the subquery before the alias is identified. It also handles the case when the entire query is surrounded by parenthesis. Unit tests illustrate this along with several examples of removing the subquery to correctly identify the alias for the order by clause.

See #2260 (c93aa25), #2500, #2518.
2022-05-04 11:38:03 -05:00
Greg L. Turnquist
e5d0841ab3 Polishing.
See #2514.
2022-05-04 10:43:38 -05:00
Diego Krupitza
a69aa22568 Fixes * bug in createCountQueryFor.
In commit 3e64d9ad9b a bug got introduced that uses the next symbol after the table name for the count function. With this commit this should be now resolved. The count query will use `*` when there is no alias present nor a variable.

Related tickets #2341, #2177, #2260, #2511
2022-05-04 10:43:13 -05:00
Christoph Strobl
32bc2a5a60 After release cleanups.
See #2468
2022-04-19 12:13:23 +02:00
Christoph Strobl
e2d5c6ef5d Prepare next development iteration.
See #2468
2022-04-19 12:13:20 +02:00
Christoph Strobl
4c9d4a606e Release version 2.6.4 (2021.1.4).
See #2468
2022-04-19 12:03:13 +02:00