Commit Graph

946 Commits

Author SHA1 Message Date
Jens Schauder
93837a198f Polishing.
Original pull request #1226
See #1212
2022-05-17 15:22:07 +02:00
Chirag Tailor
4fb0ccf721 Update @Query argument conversion to handle Collection<Enum>.
+ Copy logic from QueryMapper#convertToJdbcValue to resolve Iterable
  arguments on findBy* query methods to resolve the same for @Query.
+ Use parameter ResolvableType instead of Class to retain generics info.

Original pull request #1226
Closes #1212
2022-05-17 15:22:07 +02:00
John Blum
ad058a029f Remove Docker Registry login.
Closes #1248.
2022-05-16 11:12:55 -07:00
Jens Schauder
716ddc43a8 Deprecate classes supporting H2 1.x.
Support for the 1.x branch of H2 will be dropped with the next major release.

See #1243
2022-05-16 13:59:51 +02:00
Christoph Strobl
0c48981c15 After release cleanups.
See #1219
2022-05-13 10:15:12 +02:00
Christoph Strobl
3167caded3 Prepare next development iteration.
See #1219
2022-05-13 10:15:09 +02:00
Christoph Strobl
18f478fae0 Release version 2.4 GA (2021.2.0).
See #1219
2022-05-13 10:05:05 +02:00
Christoph Strobl
6797448401 Prepare 2.4 GA (2021.2.0).
See #1219
2022-05-13 10:04:18 +02:00
Jens Schauder
13c2e65378 Upgrade Maria DB JDBC driver version to 2.7.5.
Closes #1244
2022-05-12 16:05:11 +02:00
Jens Schauder
9fe8ef8677 Upgrade Postgresql JDBC driver version to 42.3.5.
Closes #1240
2022-05-12 16:04:06 +02:00
Jens Schauder
ba2f36287c Upgrade Awaitility version to 4.2.0.
Closes #1241
2022-05-12 12:44:19 +02:00
Jens Schauder
416a1fa3cc Upgrade MySql JDBC driver version to 8.029.
Closes #1239
2022-05-12 12:42:47 +02:00
Jens Schauder
082057530f Upgrade DB2 JDBC driver version to 11.5.7.0.
Closes #1237
2022-05-12 12:41:34 +02:00
Jens Schauder
0e590ad950 Polishing
See #1232
2022-05-11 12:18:21 +02:00
Jens Schauder
60117f1423 This reintroduces the behavior of BeforeSaveCallbacks to allow for creating an Id for an insert operation.
This behavior is strictly speaking not correct, since this kind of action should be performed in a BeforeConversionCallback.

Closes #1232
2022-05-11 12:18:21 +02:00
Christoph Strobl
9b3aeef6d4 After release cleanups.
See #1204
2022-04-19 11:21:17 +02:00
Christoph Strobl
1e0deb3f75 Prepare next development iteration.
See #1204
2022-04-19 11:21:14 +02:00
Christoph Strobl
bb9df304af Release version 2.4 RC1 (2021.2.0).
See #1204
2022-04-19 11:10:52 +02:00
Christoph Strobl
6eda8b7c36 Prepare 2.4 RC1 (2021.2.0).
See #1204
2022-04-19 11:10:13 +02:00
Jens Schauder
d21f5184c5 Change branch for CI trigger. 2022-03-23 16:24:37 +01:00
Jens Schauder
906f75c5f4 Polishing.
Changed default behaviour to an empty name for embedded entities.
This allows to use embedded entities for column tuples without special prefix.

Original pull request #1149
2022-03-23 15:31:03 +01:00
Daniil Razorenov
f21f031a4a Fix assemble table alias for embedded entity with empty prefix and reference.
Table alias for embedded entity use prefix value from Embedded annotation. But default value for prefix is empty string. If try to create SqlIdentifier for empty string it throw exception. To avoid this behavior, if prefix is an empty string, property name for embedded entity is taken instead.
2022-03-23 11:43:35 +01:00
Jens Schauder
7c20658b14 Polishing.
This change extracts entity modifying behaviour into separate methods, so it doesn't appear as an unexpected side effect of the creation of aggregate changes.

Also some formatting.

Original pull request #1196
See #1137
2022-03-22 17:02:36 +01:00
Chirag Tailor
a1a87a44ef Determine and set the value for entity @Version before conversion to DbActions to simplify execution context.
This change incorporates one test from https://github.com/spring-projects/spring-data-relational/pull/1150

Original pull request #1196
Closes #1137
2022-03-22 17:02:36 +01:00
Chirag Tailor
993f6aa643 Update java and reference doc info on lifecycle events/callbacks.
Original pull request #1200
2022-03-22 13:22:13 +01:00
Greg L. Turnquist
b27b81cdf2 After release cleanups.
See #1176
2022-03-21 10:20:32 -05:00
Greg L. Turnquist
1d1b972209 Prepare next development iteration.
See #1176
2022-03-21 10:20:30 -05:00
Greg L. Turnquist
f172fce40d Release version 2.4 M4 (2021.2.0).
See #1176
2022-03-21 10:09:33 -05:00
Greg L. Turnquist
069b7f3a07 Prepare 2.4 M4 (2021.2.0).
See #1176
2022-03-21 10:07:07 -05:00
Mark Paluch
2516067553 Disable package cycle tests.
Property Converters introduced a cycle so we're disabling the tests for now as we cannot resolve these from here.

See #1176
2022-03-21 08:51:19 +01:00
Jens Schauder
2c66ce5d3d Polishing.
Formatting.

See #1159
Original pull request # 1191
2022-03-16 14:17:26 +01:00
Chirag Tailor
014bb7189e Batch inserts of referenced entities.
Insert for entities of same type within an aggregate get inserted using JDBC batch operations when possible.

Inserts are supported when no id needs to be generated by the database or if the Dialect supports generation of ids in batch operations.

Closes #1159
Original pull request # 1191
2022-03-16 14:13:52 +01:00
Mark Paluch
aafbce3ea9 Use Java 8 to build snapshots for Artifactory.
Closes #1180
2022-03-15 14:43:57 +01:00
Meng Zuozhu
bfba4222f8 Fix toString for negated conditions.
Original pull request #1193
2022-03-11 08:31:00 +01:00
Jens Schauder
b4d3838d65 Polishing.
Run tests only for a single database since it is actually not testing anything database related.

Formatting.

Original pull request #1187
See #1043
2022-03-07 14:59:22 +01:00
Diego Krupitza
36827110ae Introduced queryLookupStrategy to EnableJdbcRepositories.
Added the missing functionality that is found in the documentation of spring-data-jdbc, but was not present in the code as functionality. Users can not choose between various QueryLookupStrategies.

Closes #1043
Original pull request #1187
2022-03-07 14:59:22 +01:00
Mark Paluch
bd0be77137 Polishing.
Reduce test method visibility.

Orginal pull request #1188
2022-03-01 15:38:07 +01:00
Mark Paluch
5352fe34cf Associate value with isTrue/isFalse criteria operators.
We now associate a boolean value with both operators as those operators are rendered using equals comparison in the actual SQL text.

Orginal pull request #1188
2022-03-01 15:37:53 +01:00
Jens Schauder
c8eafe7337 Move Lock to relational module.
This allows both Spring Data R2DBC and Spring Data JDBC to use the same annotation.

See spring-projects/spring-data-jdbc/issues/1041, spring-projects/spring-data-r2dbc/pull/720, spring-projects/spring-data-jdbc/pull/1158
2022-02-22 16:24:32 +01:00
Mark Paluch
98d2b223d3 Update CI properties.
See #1176
2022-02-22 14:09:31 +01:00
Mark Paluch
23983bb3b5 Upgrade to Maven Wrapper 3.8.4.
See #1184
2022-02-22 13:59:08 +01:00
Mark Paluch
aa8c8a1743 Use Java 17 to build snapshots for Artifactory.
Closes #1180
2022-02-22 09:06:49 +01:00
Jens Schauder
63f2331727 Avoid conversion when return value is null.
Closes #1167
2022-02-21 15:11:16 +01:00
Diego Krupitza
9554fdfe48 Remove unnecessary toString() call.
There were few explicit `toString()` calls that are not needed, since `toString()` will be called by default.

Original pull request #1172
2022-02-21 11:11:00 +01:00
Diego Krupitza
b7afc380e1 StringBuilder can be replaced with String concatenation.
In this case the usage of `StringBuilder` has no additional benefit, since it is not inside a loop where the JVM may have problems detecting String concatenation that can be optimized. The usage of "simple" String concatenation makes the code more readable and the code will be automatically optimised by the compiler.

Original pull request #1173
2022-02-21 10:59:45 +01:00
Mark Paluch
0240b64ada After release cleanups.
See #1133
2022-02-18 11:15:41 +01:00
Mark Paluch
b36e8092e1 Prepare next development iteration.
See #1133
2022-02-18 11:15:39 +01:00
Mark Paluch
cd84c8d551 Release version 2.4 M3 (2021.2.0).
See #1133
2022-02-18 11:09:10 +01:00
Mark Paluch
2937cd08d9 Prepare 2.4 M3 (2021.2.0).
See #1133
2022-02-18 11:08:46 +01:00
Christoph Strobl
4a8b185b02 Update copyright year to 2022.
See: #1168
2022-02-17 13:50:23 +01:00