Commit Graph

1946 Commits

Author SHA1 Message Date
Mark Paluch
9ffbfb6f99 Improve count and exists query projections.
We now use COUNT(*) and SELECT 1 for count respective exists queries to enable database optimizers instead of using the key columns.

Closes #1647
2023-11-06 10:35:05 +01:00
Mark Paluch
5312731623 Reject Limit parameter using String-based queries.
Document limitations, add test cases for derived queries.

Closes #1654
2023-11-02 09:26:43 +01:00
Jens Schauder
4ceb982197 Clarify that converters are for simple values only.
Closes #1533
2023-10-20 11:58:34 +02:00
Jens Schauder
7a7d3a3e83 Clarify not to map backreferences and key columns.
Closes #504
2023-10-20 11:55:30 +02:00
Jens Schauder
13d4f120f8 Mention usage of SpEL in queries.
Closes #1566
2023-10-20 10:32:20 +02:00
Jens Schauder
09f3ceeb82 Polishing.
See #650
2023-10-20 10:32:20 +02:00
Greg L. Turnquist
7f649c4b66 Migrate from Gradle Enterprise to Develocity.
Gradle Enterprise has been rebranded as Develocity.

See #1645
2023-10-19 10:53:14 -05:00
Greg L. Turnquist
90ee50b867 Polishing.
See #1645
2023-10-19 10:48:34 -05:00
Jens Schauder
fdc85a91ff Explain custom RowMapper and ResultSetExtractor.
Closes #650
2023-10-19 16:42:40 +02:00
Greg L. Turnquist
0ef725f387 Update CI properties.
See #1642
2023-10-19 09:38:57 -05:00
Jens Schauder
6736d8334e Add conversion capabilities to the entity instantiator.
Closes #1646
2023-10-17 16:54:11 +02:00
Jens Schauder
778d368725 Improve documentation about custom conversion registration.
Closes #1625
2023-10-17 13:25:57 +02:00
Jens Schauder
75bb6fe2a8 Set user for CI build in order to get a nice gravatar.
Closes #1645
See spring-projects/spring-data-jpa@f52aa75
See spring-projects/spring-data-jpa#3142
2023-10-17 10:02:17 +02:00
Greg L. Turnquist
8073ccb737 Update CI properties.
See #1642
2023-10-16 13:28:23 -05:00
Jens Schauder
f39c7e0b44 Setup Gradle Enterprise credentials.
See #1643
2023-10-16 11:19:16 +02:00
Eric Haag
7324cacf82 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

Originial pull request #1643
2023-10-16 11:18:17 +02:00
Jens Schauder
28d40b017a Improve documentation for mapping sets.
The documentation now correctly states that the back reference name can by customized via annotation.

Closes #797
2023-10-16 11:01:23 +02:00
Jens Schauder
3c7cbcfeeb Polishing.
Original pull request #1636
2023-10-16 11:01:23 +02:00
Simon Verhoeven
4062237e04 Update readme.
Cleanup.

Original pull request #1636
2023-10-16 11:01:15 +02:00
John Blum
2c0de7b45f After release cleanups.
See #1614
2023-10-13 08:52:01 -07:00
John Blum
b7855d010f Prepare next development iteration.
See #1614
2023-10-13 08:51:59 -07:00
John Blum
74ae9af708 Release version 3.2 RC1 (2023.1.0).
See #1614
2023-10-13 08:44:26 -07:00
John Blum
4c0e10fca7 Prepare 3.2 RC1 (2023.1.0).
See #1614
2023-10-13 08:43:57 -07:00
Jens Schauder
8ba1204b2a Polishing.
Original pull request #1618
See #1554
2023-10-13 11:04:55 +02:00
Mark Paluch
5344197ba6 Fix identifier propagation for no-id list elements.
Original pull request #1618
See #1554
2023-10-13 10:28:30 +02:00
Mark Paluch
5398b94020 Deprecate Basic…Converter infrastructure.
Merge basic converters into Mapping…Converters and introduce deprecated variant to provide guidance for migration off the deprecated types.

Cleanup no longer required code.

Original pull request #1618
See #1554
2023-10-13 10:28:18 +02:00
Mark Paluch
4e3120ee0e Migrate JDBC to use RowDocument for reading aggregates.
Original pull request #1618
See #1554
2023-10-13 10:28:11 +02:00
Mark Paluch
665ae6b5a8 Migrate R2DBC to read RowDocument.
Original pull request #1618
See #1554
2023-10-13 10:27:53 +02:00
Mark Paluch
41b37a6bd8 Add support for multi-level projections using EntityProjection.
We now support multi-level projections by introspecting the result and the domain type and read projections directly into a DTO or a backing map for interface projections.

Original pull request #1618
Closes #1554
2023-10-13 10:26:26 +02:00
Jens Schauder
9c36eb970b Fix MS Sql Server integration tests.
Closes #1638
2023-10-11 15:54:56 +02:00
Jens Schauder
64eeecd1e3 Run integration tests during ci build.
See #1637
2023-10-11 15:18:29 +02:00
Jens Schauder
16ab1c4842 Using verify during the CI build 2023-10-11 15:12:39 +02:00
Jens Schauder
210b63fcb4 Add failsafe:verify goal as an execution.
The failsafe plugin only fails during it's verify goal, not when actually executing the tests.

The goal is by default added to the verify phase.
But for the database tests this adds it to the integration-test phase.
This ensures that the build fail as soon a test for one database fails.

Closes #1637
2023-10-11 13:54:47 +02:00
Mark Paluch
a72bf1a65d Polishing.
Delegate BatchJdbcOperations calls to NamedParameterJdbcOperations. Refine since and deprecation tags.

See #1616
2023-10-11 09:54:44 +02:00
Jens Schauder
5d6d575ab2 Replace BatchJdbcOperations with Spring's NamedParameterJdbcOperations.
BatchJdbcOperations is still there, but deprecated, and not used except for deprecated places kept for backward compatibility.

This is possible since Spring Framework made the features offered by `BatchJdbcOperations` part of `NamedParameterJdbcOperations`.

Closes #1616
2023-10-11 09:54:44 +02:00
Jens Schauder
6887ca78a5 Replace java.rmi.server.UID with UUID.
Closes #1635
2023-10-10 10:44:44 +02:00
Jens Schauder
52d316310b Upgrade to Mybatis 3.5.13.
Original pull request #1222
2023-10-10 08:34:05 +02:00
Jens Schauder
1c66098de7 Upgrade to Mybatis-Spring 3.0.2.
Original pull request #1222
2023-10-10 08:34:05 +02:00
Jens Schauder
ddec3cc531 Adapt to new test infrastructure.
Originial pull request #1222
See #1220
See #1620
2023-10-10 08:34:05 +02:00
Jens Schauder
3b2e8c7a7e Upgrade to Mybatis Spring Version 2.1.0.
Closes #1220
Original pull request #1222
2023-10-10 08:33:33 +02:00
John Blum
5399171a79 Update CI properties.
See #1614
2023-10-04 17:24:12 -07:00
John Blum
a5147d31ce Upgrade to Maven Wrapper 3.9.5.
See #1631
2023-10-04 16:58:15 -07:00
Jens Schauder
88ab6b60ca Remove excludes for maven test execution.
Maven Surefire and Failsafe plugins by default do not run inner classes, no matter if they are `@Nested` or just plain static inner classes.

This change removes this default exclude.

Closes #1627
See https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludes
2023-09-28 14:21:03 +02:00
Mark Paluch
a555119f8b Polishing.
Remove Jetbrains annotation usage.

Simplify code, remove code that is commented out, extract methods, pass PersistentEntity as argument instead of creating instances that hold PersistentEntity as field to align the class lifecycle with its contextual usage.

Refactor AggregateReader lifecycle, use a single instance as there is no entity-specific state attached to AggregateReader.

Add Javadoc.

See #1448
Original pull request: #1622
2023-09-27 10:05:16 +02:00
Jens Schauder
9e795d1349 Polishing.
Add github references to tests.

See #1446
See #1448
Original pull request: #1622
2023-09-27 10:05:06 +02:00
Jens Schauder
9e41d25d15 Support Single Query Loading for aggregates with more than one collection.
Closes #1448
Original pull request: #1622
2023-09-27 10:04:55 +02:00
Mark Paluch
8fa9e3e1d5 Polishing.
Simplify type and interface arrangement.

See #1601
Original pull request: #1617
2023-09-26 14:40:01 +02:00
Mark Paluch
7b27d0e08c Add JMH benchmarks and optimizations to affected components.
See #1601
Original pull request: #1617
2023-09-26 14:40:01 +02:00
Jens Schauder
f3bc0af8c4 Polishing.
Simplify ValueFunction mapping. Remove invariants of findBy SQL generation in favor of the Condition-based variant. Reduce visibility. Change return value of AggregateReader to List

See #1601
Original pull request: #1617
2023-09-26 14:36:47 +02:00
Jens Schauder
0fdeaebbee Add support for arbitrary where clauses in Single Query Loading.
Closes #1601
Original pull request: #1617
2023-09-26 14:36:46 +02:00