Commit Graph

511 Commits

Author SHA1 Message Date
mipo256
4e465972fb Remove DbActionExecutionException.
We now raise the exceptions from `NamedParameterJdbcTemplate` directly.

If you used to extract the `cause` of a `DbActionExecutionException` you should now catch that Exception directly.

Original pull request #1956
Closes #831

Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>
2025-05-16 12:23:05 +02:00
Christoph Strobl
806f807806 Prepare next development iteration.
See #1943
2025-05-16 12:23:05 +02:00
Christoph Strobl
a1b42d019b Release version 4.0 M1 (2025.1.0).
See #1943
2025-05-16 12:23:04 +02:00
Mark Paluch
8d8f349a4f Adopt to deprecation removals in Commons.
Closes #1944
2025-05-16 12:23:04 +02:00
Mark Paluch
27b0efc3f6 After release cleanups.
See #2042
2025-05-16 12:20:32 +02:00
Mark Paluch
8bb66d7c0c Prepare next development iteration.
See #2042
2025-05-16 11:31:15 +02:00
Mark Paluch
fb390ff9e4 Release version 3.5 GA (2025.0.0).
See #2042
2025-05-16 11:28:31 +02:00
Mark Paluch
becc753e2f Polishing.
Deprecate original DialectResolver and JdbcArrayColumns as they've been in the wrong package and introduce replacements in the dialect package. Let deprecated types extend from their replacements to retain compatibility.

Make instance holders final, fix Javadoc typos, update reference docs.

Original pull request #2036
See #2031
2025-05-08 12:09:04 +02:00
mipo256
7698d487ba Introduced new JDBC dialect counterparts.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Commit message edited by Jens Schauder

Original pull request #2036
Closes #2031
2025-05-08 12:08:36 +02:00
Jens Schauder
520d6a7d4d Polishing.
Added author tags.

Original pull request: #2049
See #2025
2025-05-06 16:06:29 +02:00
Daeho Kwon
e88f4fe299 Adopt to deprecated QueryMethod constructor.
Original pull request: #2049
Closes: #2025
2025-05-06 16:05:55 +02:00
mipo256
d6121cbfe2 R2DBC @Sequence annotation support.
Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

See #1955
Original pull request: #2028
2025-04-24 09:42:24 +02:00
Mark Paluch
7e2064315f Prepare next development iteration.
See #2015
2025-04-22 11:26:48 +02:00
Mark Paluch
60fe3455ef Release version 3.5 RC1 (2025.0.0).
See #2015
2025-04-22 11:24:11 +02:00
Mark Paluch
e27a05880f Fix typo in sequence selection.
See #2003
Original pull request: #2005
2025-04-09 11:48:04 +02:00
Mark Paluch
eb25cc3ed4 Move Sequence to RelationalPersistentProperty.
Sequence details are now maintained on the property level instead of using the entity level. This is a more accurate representation of the underlying model and that properties are annotated and not entities. It also allows future extension of expanding sequence support to general properties.

Extract delegate for sequence generation. Move types to org.springframework.data.jdbc.core.convert to resolve package cycles.

See #2003
Original pull request: #2005
2025-04-09 10:45:47 +02:00
Mark Paluch
d0e43be314 Polishing.
Refine assignment flow and use early returns where possible. Cache empty MapSqlParameterSource. Reduce dependency on RelationalMappingContext using a lower-level abstraction signature. Simplify names. Use default value check from Commons. Fix log warning message. Add missing since tags.

Remove superfluous annotations and redundant code. Tweak documentation wording.

Closes #2003
Original pull request: #2005
2025-04-09 10:31:15 +02:00
Mark Paluch
8bedb3d7d0 Prepare next development iteration.
See #1996
2025-03-14 09:33:42 +01:00
Mark Paluch
f4b4a77ed7 Release version 3.5 M2 (2025.0.0).
See #1996
2025-03-14 09:31:05 +01:00
Mark Paluch
8852ca4b52 Prepare next development iteration.
See #1942
2025-02-14 12:25:08 +01:00
Mark Paluch
c3e5a431b4 Release version 3.5 M1 (2025.0.0).
See #1942
2025-02-14 12:22:37 +01:00
Jens Schauder
8c017fc56b Polishing.
Reference issues in tests comments.
Removed `DisabledOnDatabase`
IdGeneration default methods related to sequence generation are now internally consistent.
Formatting and naming.
IdGeneration offers simple support by default.
Fix exception in oracle integration test setup
Use SqlIdentifier for sequence names
Remove SEQUENCE id source
Added documentation

See #1923
Original pull request #1955
2025-02-05 08:53:32 +01:00
Mikhail2048
d1c996008c Support for ID generation by sequence.
Ids can be annotated with @Sequence to specify a sequence to pull id values from.

Closes #1923
Original pull request #1955

Signed-off-by: mipo256 <mikhailpolivakha@gmail.com>

Some accidential changes removed.
Signed-off-by: schauder <jens.schauder@broadcom.com>
2025-02-04 17:03:19 +01:00
Mark Paluch
4ef05389a7 Polishing.
Reformat code.

See #1969
2025-01-13 12:09:51 +01:00
Jens Schauder
ece981f9f1 Ignore collection like attributes for query by example.
Collection valued attributes now get ignored.
Before RelationalExampleMapper tried to generate predicates for these, resulting in invalid SQL.

Closes #1969
2025-01-13 12:09:40 +01:00
Mark Paluch
8b157aa779 Extend license header copyright years to 2025.
See #1973
2025-01-08 10:04:52 +01:00
Jens Schauder
721a7ad458 Implement equals and hashCode for Criteria.
This facilitates testing of Criteria construction and is also usful, when keeping Criteria instances in sets or similar.

Closes #1960
2024-12-16 13:40:54 +01:00
Jens Schauder
66466e8756 Fixed rendering of NOT condition.
Closes #1945
2024-11-21 10:14:43 +01:00
Mark Paluch
ff6717a0bd Prepare next development iteration.
See #1916
2024-11-15 14:13:08 +01:00
Mark Paluch
2bda8fec26 Release version 3.4 GA (2024.1.0).
See #1916
2024-11-15 14:10:52 +01:00
Mark Paluch
ddb4b2d7ef Polishing.
Reduce test class and method visibility.

See #1939
2024-11-14 11:32:46 +01:00
Mark Paluch
a4c462ec99 Correctly apply Sorting of unpaged Pageable.
Closes #1939
2024-11-14 11:32:46 +01:00
Mark Paluch
305f675ba8 Polishing.
Use correct annotations.

See #1883
2024-10-29 09:32:01 +01:00
Mark Paluch
73e503338d Polishing.
Eliminate potential NoSuchElementException from unchecked Optional.get usage. Simplify stream. Return Staged value, fix Nullability annotations.

See #1907
Original pull request: #1920
2024-10-25 14:56:54 +02:00
Jens Schauder
a7d7adaaf2 Fix id setting for partial updates of collections of immutable types.
We gather immutable entities of which the id has changed, in order to set them as values in the parent entity.
We now also gather unchanged entities.
So they get set with the changed one in the parent.

Closes #1907
Original pull request: #1920
2024-10-25 14:56:54 +02:00
Tran Ngoc Nhan
f2d62ad7e7 Polishing.
Pattern matching usage.
Diamond operator usage.
Remove unused import.
isEmpty usage.

Original pull request #1912
2024-10-21 09:10:13 +02:00
Mark Paluch
b788e7abac Prepare next development iteration.
See #1883
2024-10-18 12:49:40 +02:00
Mark Paluch
22f12e341e Release version 3.4 RC1 (2024.1.0).
See #1883
2024-10-18 12:47:01 +02:00
Tran Ngoc Nhan
9277792d87 Polishing.
Original pull request #1894
2024-09-23 09:20:47 +02:00
Jens Schauder
4840f7c17b Polishing.
Restructure test.
Remove redundant code.
Formatting.

Original pull request #1876
See #1842
2024-09-16 12:11:57 +02:00
Tran Ngoc Nhan
5b7625992c Consider target type for custom converter determination.
Closes #1842
Original pull request #1876
2024-09-16 09:50:52 +02:00
Jens Schauder
eb9168f95e Prepare next development iteration.
See #1791
2024-09-13 12:42:27 +02:00
Jens Schauder
f7936e0fe6 Release version 3.4 M1 (2024.1.0).
See #1791
2024-09-13 12:39:33 +02:00
Jens Schauder
615c79cb3e Polishing.
See #1873
Original pull request #1875
2024-09-12 09:24:43 +02:00
Mikhail2048
1b9b9b2ed2 Add converter for microsoft.sql.DateTimeOffset.
Original pull request #1875
Closes #1873
2024-09-12 09:23:35 +02:00
Jens Schauder
44f96b86f7 Upgrade to jsqlparser 5.0.
`ExpressionList` is now extending `ArrayList` requiring minor code changes.

Closes #1878
2024-09-11 10:28:42 +02:00
Tran Ngoc Nhan
7b2c4e5f23 Remove unused imports.
Original pull request #1877
2024-09-09 08:58:02 +02:00
Mark Paluch
72774135a7 Polishing.
Remove Preprocessor interface. Add property accessors to RelationalQueryLookupStrategy. Reuse property accessors instead of loosely coupled object access.

See #1856
Original pull request #1863
2024-09-04 10:04:55 +02:00
Jens Schauder
f937738038 Support for table names in SpEL expressions.
SpEL expressions in queries get processed in two steps:

1. First SpEL expressions outside parameters are detected and processed.
This is done with a `StandardEvaluationContext` with the variables `tableName` and `qualifiedTableName` added.
This step is introduced by this commit.

2. Parameters made up by SpEL expressions are processed as usual.

Closes #1856
Original pull request #1863
2024-09-04 10:04:55 +02:00
Jens Schauder
b006923f0d Polishing.
Original pull request #1869
2024-08-30 13:28:27 +02:00