Commit Graph

936 Commits

Author SHA1 Message Date
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
Greg L. Turnquist
4d21e56548 Update CI properties.
See #1133
2022-02-15 08:59:49 -06:00
Oliver Drotbohm
d4c223d9d5 Adapt to changes in entity creation metadata APIs in Spring Data Commons. 2022-02-15 15:12:58 +01:00
Jens Schauder
1456788d77 Polishing.
Original pull request #1166
2022-02-15 11:36:20 +01:00
Diego Krupitza
f7887f8626 Added reference documentation for Lock on derived queries.
The reference documentation now contains how to use `@Lock` on derived queries and what to expect from it.

Original pull request #1166
2022-02-15 11:36:20 +01:00
Jens Schauder
e84a34a507 Fixes NPE in PersistentPropertyPathExtension.equals.
Closes #1164
2022-02-11 12:00:18 +01:00
Jens Schauder
e8c933dc80 Polishing.
Adding references to issues on test annotations.
Made test methods package private.

See #1164
2022-02-11 12:00:18 +01:00
Jens Schauder
cd3d0b19b0 Polishing.
Refactored the unit tests to include a negative case and to separate the different scenarios tested.

Removed the default LockMode from the Lock annotation.
I have the feeling that most users will assume an exclusive Lock when none is specified, but also don't want to request stronger locks than required.

Original pull request #1158
See #1041
2022-02-09 16:23:08 +01:00
Diego Krupitza
e68c3557c0 Introduced pessimistic locks for derived queries.
Methods which use the derive query functionality now can be annotated with `@Lock` to used a given `LockMode`. Right now there are two different modes `PESSIMISTIC_READ` and `PESSIMISTIC_WRITE`. Based on the dialect the right select is generated. For example for HSQLDB `Select ... FOR UPDATE`.

See #1041
Original pull request #1158
2022-02-09 16:22:27 +01:00
Jan Michal
dbf5dd56a6 Fix a typo in the docs for query methods.
Original pull request #1163
2022-02-09 11:15:20 +01:00
Jens Schauder
49898726a4 Polishing.
Rename "null handling" to "null precedence".
This is somewhat inconsistent with commons null handling, but more descriptive.

Minor formatting.

Original pull request #1156
See #821
2022-02-08 12:07:38 +01:00