Commit Graph

922 Commits

Author SHA1 Message Date
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
Chirag Tailor
f48bbabc28 Null precedence is now supported if the underlying database supports it.
Original pull request #1156
Closes #821
2022-02-08 12:02:50 +01:00
Mark Paluch
44b7b8fdf3 Polishing.
Extract docker and artifactory credentials into property file.

See #1151
2022-02-04 14:49:25 +01:00
Jens Schauder
97331f72e3 Replaces java.sql.Types constants with java.sql.SQLType values.
java.sql.Types constants are int values and therefore make it tedious to read and debug the code.
SQLType values are mostly enum constants which are much nicer to use.

Original pull request #1142
2022-02-04 13:26:54 +01:00
Jens Schauder
a132d432e8 Render windowing functions without arguments correctly.
Closes #1153
See #1019
2022-02-02 15:31:50 +01:00
Greg L. Turnquist
0dcf12c83c Externalize build properties.
See #1151.
2022-01-31 16:41:24 -06:00
Jens Schauder
cef041f683 Polishing.
See #1046
Original pull request #1144
2022-01-31 15:58:09 +01:00
Jens Schauder
45e15b1593 Replaces broken test with a working one.
See #1046, #498
Original pull request #1144
2022-01-31 15:42:57 +01:00
Chirag Tailor
c4933c0be9 Support element conversion of array results.
This is achieved by passing the full availabe type information of the conversion target to the conversion service.

This broke a test which wasn't functional in the first place which becomes obvious when adding the proper assertion.

Closes #1046
Original pull request #1144
2022-01-31 15:39:06 +01:00
Christoph Strobl
eee773ea82 After release cleanups.
See #1131
2022-01-18 09:21:32 +01:00
Christoph Strobl
dce0e36c90 Prepare next development iteration.
See #1131
2022-01-18 09:21:29 +01:00
Christoph Strobl
76ece50f2b Release version 2.4 M2 (2021.2.0).
See #1131
2022-01-18 09:09:34 +01:00
Christoph Strobl
d879f21f57 Prepare 2.4 M2 (2021.2.0).
See #1131
2022-01-18 09:08:59 +01:00
Christoph Strobl
cb5e3271a4 After release cleanups.
See #1088
2022-01-14 11:08:02 +01:00
Christoph Strobl
51ffa1c59f Prepare next development iteration.
See #1088
2022-01-14 11:07:59 +01:00