Juergen Hoeller
3b1af692cc
Merge branch '6.0.x'
...
# Conflicts:
# spring-beans/spring-beans.gradle
# spring-context/spring-context.gradle
# spring-orm/spring-orm.gradle
# spring-test/spring-test.gradle
# spring-web/spring-web.gradle
# spring-webflux/spring-webflux.gradle
2023-08-02 01:04:31 +02:00
Juergen Hoeller
d250a5155a
Consistent dependency declarations
2023-08-02 00:56:50 +02:00
Sam Brannen
06c6af9b0d
Stop using Constants utility in IsolationLevelDataSourceRouter
...
See gh-30851
2023-07-31 16:08:47 +03:00
Sam Brannen
181c814e69
Polish IsolationLevelDataSourceRouter
2023-07-31 16:08:47 +03:00
Sam Brannen
0eda44186a
Polish tests for configuration constants
...
See gh-30851
2023-07-31 16:08:47 +03:00
Sam Brannen
48eb477755
Assert LazyConnectionDataSourceProxy.setDefaultTransactionIsolation() values
...
See gh-30851
2023-07-31 15:11:52 +03:00
Sam Brannen
cc9278666d
Stop using Constants utility in LazyConnectionDataSourceProxy
...
See gh-30851
2023-07-31 13:56:49 +03:00
Sam Brannen
c87925cee7
Polish LazyConnectionDataSourceProxy
2023-07-31 13:56:49 +03:00
Juergen Hoeller
3437e61f98
Merge branch '6.0.x'
2023-07-26 12:08:20 +02:00
Juergen Hoeller
2573ba4a50
Polishing
2023-07-26 12:07:11 +02:00
Juergen Hoeller
bbde68c49e
Polishing
2023-07-25 19:12:07 +02:00
Juergen Hoeller
ccaccda6ca
Polishing
2023-07-25 19:22:02 +02:00
Juergen Hoeller
5ebbb3ff3e
Merge branch '6.0.x'
...
# Conflicts:
# spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcOperations.java
# spring-jdbc/src/main/java/org/springframework/jdbc/core/JdbcTemplate.java
# spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/NamedParameterJdbcTemplate.java
2023-07-25 19:13:33 +02:00
Juergen Hoeller
019c34f480
Introduce JdbcClient as a fluent facade for query/update execution
...
Delegates to JdbcTemplate/NamedParameterJdbcTemplate underneath the covers.
Supports parameter objects/records through SimplePropertySqlParameterSource.
Closes gh-30931
2023-07-25 18:10:30 +02:00
Sam Brannen
9571aa1c68
Stop using Constants utility in IsolationLevelDataSourceAdapter
...
See gh-30851
2023-07-19 18:05:41 +03:00
Sam Brannen
a34f9fa66c
Update copyright headers
2023-07-15 13:10:46 +02:00
Sam Brannen
5ce8ffd197
Merge branch '6.0.x'
2023-07-15 13:11:03 +02:00
Sam Brannen
70cf754a2f
Suppress warnings in tests
2023-07-15 13:02:16 +02:00
Sam Brannen
e6d360c1c6
Polishing
2023-07-15 12:58:18 +02:00
Juergen Hoeller
fd17df91fd
Merge branch '6.0.x'
...
# Conflicts:
# spring-jdbc/src/main/java/org/springframework/jdbc/support/AbstractFallbackSQLExceptionTranslator.java
2023-07-14 14:38:24 +02:00
Juergen Hoeller
384246c360
Polishing
2023-07-14 14:37:34 +02:00
Juergen Hoeller
519927421e
Add support for configurable custom translator
...
Closes gh-24634
2023-07-14 14:17:20 +02:00
Juergen Hoeller
064cd3b7af
Merge branch '6.0.x'
...
# Conflicts:
# gradle.properties
# spring-core/src/main/java/org/springframework/core/convert/support/GenericConversionService.java
2023-07-14 12:18:41 +02:00
Juergen Hoeller
75f5dac16b
Polishing
2023-07-14 12:16:37 +02:00
Juergen Hoeller
094eb3e236
Use varargs for array elements
...
See gh-1850
2023-07-13 00:55:35 +02:00
Juergen Hoeller
3fed2ec3a1
Add common SqlValue implementation for JDBC Array creation
...
Closes gh-1850
2023-07-13 00:28:32 +02:00
Sam Brannen
16b9640af2
Merge branch '6.0.x'
2023-07-12 11:50:11 +02:00
Sam Brannen
68f2b0ca59
Rely on auto-boxing in tests
2023-07-12 11:49:02 +02:00
Juergen Hoeller
3b899fe7e2
Handle JDBC warnings in case of a statement exception as well
...
Closes gh-23106
2023-07-10 17:17:30 +02:00
Sébastien Deleuze
b3de1b8e95
Use consistently *KotlinTests naming for Kotlin tests
...
Closes gh-30837
2023-07-08 11:02:20 +02:00
Juergen Hoeller
35c7e3960e
Polishing
2023-07-07 13:46:57 +02:00
Juergen Hoeller
9a68b3e910
Merge branch '6.0.x'
2023-07-10 17:18:16 +02:00
Sébastien Deleuze
8fb412ea74
Merge branch '6.0.x'
2023-07-08 11:11:37 +02:00
Juergen Hoeller
ddc3cf301a
Merge branch '6.0.x'
...
# Conflicts:
# spring-context/src/main/java/org/springframework/scheduling/concurrent/ExecutorConfigurationSupport.java
2023-07-07 13:51:08 +02:00
Sam Brannen
40596433f1
Merge branch '6.0.x'
2023-06-22 15:28:34 +02:00
Sam Brannen
65d450ab6d
Document that RowCallbackHandler can be used w/ NamedParameterJdbcTemplate
...
Closes gh-30705
2023-06-22 15:27:41 +02:00
Juergen Hoeller
5bf213948c
Merge branch '6.0.x'
...
# Conflicts:
# spring-orm/src/main/java/org/springframework/orm/hibernate5/SpringBeanContainer.java
2023-06-17 11:41:07 +02:00
Juergen Hoeller
c634acd9ff
Recognize error code 2628 as data integrity violation (MSSQL 2019)
...
Closes gh-30681
2023-06-17 11:38:41 +02:00
Sam Brannen
b9e972c248
Polishing
2023-06-06 16:11:40 +02:00
Juergen Hoeller
4fb4c95220
Merge branch '6.0.x'
2023-06-05 10:53:29 +02:00
Juergen Hoeller
6cc084dbde
Consistent javadoc references to JdbcTransactionManager
2023-06-05 10:52:33 +02:00
Juergen Hoeller
2689bab652
Merge branch '6.0.x'
2023-06-03 17:19:06 +02:00
Juergen Hoeller
d2906253f1
Fall back to plain setObject call for non-supported SQL type
...
Closes gh-30556
2023-06-03 17:16:36 +02:00
Sam Brannen
02f152c6e1
Merge branch '6.0.x'
2023-05-23 15:11:19 +02:00
Sam Brannen
4bb12c4ba4
Update copyright headers
2023-05-23 15:10:08 +02:00
Simon Baslé
f5bc084ce2
Merge branch '6.0.x' (javadoc changes)
2023-05-16 15:05:42 +02:00
Simon Baslé
eabb846d07
Improve how the build deals with javadoc invalid references
...
This commit improves how the build deals with javadoc invalid references
in two ways.
Link/see references that are temporarily invalid during javadoc
generation of individual modules are better masked by using the option
`Xdoclint:syntax` instead of `Xdoclint:none` (warnings were still
visible in some cases, e.g. when individually building the javadoc for
a specific module).
Global javadoc-building task `api` now combines `syntax` and `reference`
`Xdoclint` groups, allowing to raise truly invalid references even when
all the modules have been aggregated.
This commit also fixes the 20+ errors which appeared following the later
change in doclet configuration.
Closes gh-30428
2023-05-16 15:04:10 +02:00
Sam Brannen
7df2e2a8d2
Remove APIs deprecated for removal in 6.1
...
This is the first commit that removes deprecated APIs.
Subsequent commits will remove additional deprecated APIs.
See gh-29449
2023-04-19 17:23:49 +02:00
Krzysztof Krasoń
1734deca1e
Refactor AssertJ assertions into more idiomatic ones
...
This commit refactors some AssertJ assertions into more idiomatic and
readable ones. Using the dedicated assertion instead of a generic one
will produce more meaningful error messages.
For instance, consider collection size:
```
// expected: 5 but was: 2
assertThat(collection.size()).equals(5);
// Expected size: 5 but was: 2 in: [1, 2]
assertThat(collection).hasSize(5);
```
Closes gh-30104
2023-04-04 17:34:07 +02:00
Simon Baslé
90b0f451f0
Add a couple missing java.time types to StatementCreatorUtils
...
This commit adds mapping for two types from the `java.time` package,
complementing the types that are already translatable to Sql types
TIME, DATE and TIMESTAMP:
- `OffsetTime` maps to a `TIME_WITH_TIMEZONE`
- `OffsetDateTime` maps to a `TIMESTAMP_WITH_TIMEZONE`
This is in accordance with the B.4 table provided in the JDBC 4.2
specification.
When preparing statements, these `java.time` types use the `setObject`
method. Tests covering the 5 `java.time` classes have also been added.
See gh-28778
See gh-28527
Closes gh-30123
2023-04-04 16:51:24 +02:00