Oliver Drotbohm
f8097a67c2
Use Integer as database column type for java.time.Year.
...
Previously, that case was handled by the registration for Temporal, which maps the type to a Timestamp, which doesn't make sense for Year.
4 weeks ago
Mark Paluch
f586de4259
Prepare next development iteration.
...
See #2159
1 month ago
Mark Paluch
3252e06ca2
Release version 4.0 GA (2025.1.0).
...
See #2159
1 month ago
Oliver Drotbohm
14e23e9e43
Remove explicit version declarations from jMolecules dependencies.
...
Fixes GH-2177.
1 month ago
Mark Paluch
833e544a15
Add AOT support for Streamable wrapper support.
...
We now support streamable wrappers through AOT repositories.
See #2175
1 month ago
Mark Paluch
1ab242d404
Polishing.
...
Fix Javadoc issues.
See #2159
1 month ago
Mark Paluch
d2cf55bb56
Consider fully-qualified table name in `StatementFactory`.
...
Closes #2162
1 month ago
Mark Paluch
1db519008d
Add support for returning `Streamable` from AOT repository methods.
...
Closes #2175
1 month ago
Mark Paluch
f2541b376f
Skip conversion of placeholders during AOT processing of derived queries.
...
We now bypass the converter used for AOT query mapping in derived queries to avoid conversion of placeholders in the AOT query.
Closes #2174
1 month ago
Tran Ngoc Nhan
547c756a63
Remove unused import.
...
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
Original pull request #2167
1 month ago
Christoph Strobl
ff51d8f5ce
Prepare next development iteration.
...
See #2164
2 months ago
Christoph Strobl
754febcee5
Release version 4.0 RC2 (2025.1.0).
...
See #2164
2 months ago
Mark Paluch
3729d76b9c
Move Commons `PropertyPath` and `TypeInformation` types to `core` package.
...
See spring-projects/spring-data-commons#3393
2 months ago
Mark Paluch
a28a2cd517
Introduce `JdbcConfiguration` and extract factory methods used from `AbstractJdbcConfiguration`.
...
Closes : #2165
Original pull request: #2166
2 months ago
Mark Paluch
888378ba0d
Upgrade to Testcontainers 2.0.
...
See spring-projects/spring-data-build#2688
2 months ago
Mark Paluch
d194b7d4e0
Polishing.
...
Refine deprecation messages. Simplify conversion, use Stream methods directly.
See #2138
Original pull request #2161
2 months ago
Jens Schauder
dc8195f9c4
Deprecate methods accepting `Query` and `Pageable` returning `Page`.
...
Since both the Query and the Pageable have limit, offset and sorting information, these methods are confusing and the strategy to resolve the conflict is not clear.
Existing code using the methods got replaced.
Users of these methods should use the various findAll and findBy methods to construct Page objects as desired.
Closes #2138
Original pull request #2161
2 months ago
Christoph Strobl
701a950d7d
Prepare next development iteration.
...
See #2135
2 months ago
Christoph Strobl
f264cbd98f
Release version 4.0 RC1 (2025.1.0).
...
See #2135
2 months ago
Oliver Drotbohm
9ac319c13d
Explicitly declare jMolecules DDD dependency.
...
Fixes GH-2156.
2 months ago
Christoph Strobl
96c0e0c8f6
Suppress nullability constraint warning.
...
The variable in doubt is checked before in another method being the sole code path leading to the doBuild method.
See: #1980
2 months ago
Christoph Strobl
239687c96c
Fix visibility issues when testing AOT repository.
...
See: #2155
2 months ago
Christoph Strobl
12e098d424
AOT query creation for IgnoreCase generates invalid code block.
...
Fix AOT jdbc repository integration test setup that generated code for a different repository.
Closes : #2155
2 months ago
Mark Paluch
c6bb7232e4
Remove accidental `org.jetbrains:annotations` usage.
...
See spring-projects/spring-data-build#2670
2 months ago
Mark Paluch
ed7844cd30
Guard `JdbcSqlServerDialect` against absence of SQL Server JDBC driver.
...
Check for presence of microsoft.sql.DateTimeOffset class before returning it as type and associated converters.
Closes #2153
2 months ago
Mark Paluch
fa1433490b
Polishing.
...
Extend tests.
See #2147
2 months ago
Mark Paluch
49f4b5f18b
Extraneous warnings related to `JdbcSqlServerDialect`.
...
Add tests for R2DBC types as well.
Closes #2147
2 months ago
Mark Paluch
c8196b52c4
Polishing.
...
Reformat code, tweak visibility.
See #2147
2 months ago
Mark Paluch
c2fce1ca17
Add H2 Dialect fallback to `JdbcRepositoryRegistrationAotProcessor`.
...
Closes #2152
2 months ago
Mark Paluch
3c0ff9ed47
Exclude ByteBuddy from MSSQL JDBC Driver.
...
Closes #2143
3 months ago
Jens Schauder
7638b887f0
Upgrade H2 to 2.4.240
...
The data type DATETIME seems to be no longer supported and got replaced by TIMESTAMP in all affected tests.
Closes #2142
See https://github.com/h2database/h2database/issues/4285
3 months ago
Mark Paluch
1f4d7f3ee9
Adapt to AOT Infrastructure changes in Commons.
...
See spring-projects/spring-data-commons#3267
3 months ago
Mark Paluch
d7629313e9
Refine AOT execution for derived queries.
...
We now provide an extension to directly run queries constructed from a derived query method to avoid leaking internals into AOT-generated code.
Closes #2140
3 months ago
Mark Paluch
c4e0112cad
Document placeholder and Ant-style pattern support for `@Enable…Repositories`.
...
See spring-projects/spring-data-commons#3366
3 months ago
Mark Paluch
18fda6768d
Define repository base class name in JDBC config extension.
...
Closes #2137
3 months ago
Mark Paluch
04bed6ac78
Reduce dependencies during AOT contribution.
...
Closes #2136
3 months ago
Christoph Strobl
ee155979c8
Prepare next development iteration.
...
See #2118
3 months ago
Christoph Strobl
f4f79d07c9
Release version 4.0 M6 (2025.1.0).
...
See #2118
3 months ago
Mark Paluch
ca77912f86
Refine JavaPoet usage.
...
See: #2121
Original pull request: #2124
3 months ago
Mark Paluch
f6d4b28912
Add Ahead of Time Repository support.
...
We now provide AOT support to generate repository implementations during build-time for JDBC repository query methods.
Supported Features
Derived query methods, @Query and named query methods
* @Modifying methods returning void, int, and long
* Pagination, Slice, Stream, and Optional return types
* DTO and Interface Projections
* Value Expressions
Excluded methods
* CrudRepository, Querydsl, Query by Example, and other base interface methods as their implementation is provided by the base class respective fragments
* Methods whose implementation would be overly complex
* Methods accepting ScrollPosition (e.g. Keyset pagination)
Closes : #2121
Original pull request: #2124
3 months ago
Mark Paluch
c5e6975d13
Move off deprecated AOT API.
...
Closes #2067
Original pull request: #2124
3 months ago
Mark Paluch
dc7affb399
Polishing.
...
Refine nullability annotation formatting, reduce warnings (final fields, isEmpty vs. length() == null), introduce getRequired…() methods to avoid Assert sprawl. Convert internal classes to records. Fix generic types (refactoring leftovers).
Replace package-info imports with fully-qualified annotation name to align formatting.
See #1980
Original pull request: #2126
3 months ago
Jens Schauder
c15e3b5e62
Migrate to JSpecify annotations for nullability constraints.
...
Replace nullability annotations with their JSpecify equivalents.
Enable checking this annotations at compile time using Errorprone and NullAway.
Closes #1980
Original pull request: #2126
3 months ago
Mark Paluch
1a64a8d2f0
Prepare next development iteration.
...
See #2094
4 months ago
Mark Paluch
cb7295990f
Release version 4.0 M5 (2025.1.0).
...
See #2094
4 months ago
Mark Paluch
7ea58ddce4
Apply DTO projection through JDBC's Query by Example.
...
Spring Data JDBC doesn't allow projections through JdbcAggregateOperations yet and so we need to apply DTO conversion.
Closes #2098
4 months ago
Mark Paluch
e4136378dd
Hide `IdOnlyAggregateReference` class.
...
IdOnlyAggregateReference is an implementation detail of AggregateReference.
Closes #2106
4 months ago
Mark Paluch
91352c0d22
Remove misleading `@Nullable` annotation from `AggregateReference.getId()`.
...
Aggregate references must be valid on their own and a null reference would represent a broken reference as we consider null identifiers as transient.
Closes #2104
4 months ago
Mark Paluch
eb1c23048d
Polishing.
...
Simplify JdbcArrayColumns from a dialect. Simplify DataAccessStrategyFactory creation. Remove superfluous overrides.
See #687
Original pull request: #1704
4 months ago
Mark Paluch
3ed4deadc1
Polishing.
...
Avoid Oracle DataSource shutdown.
See #687
Original pull request: #1704
4 months ago