Commit Graph

480 Commits

Author SHA1 Message Date
Greg L. Turnquist
5fe2d94028 Prepare next development iteration.
See #1455
2023-04-14 10:25:01 -05:00
Greg L. Turnquist
81d6f45b04 Release version 3.0.5 (2022.0.5).
See #1455
2023-04-14 10:19:17 -05:00
Greg L. Turnquist
ec92259a5d Test against Java 20 on CI.
See #1462.
2023-04-04 16:16:40 -05:00
Mark Paluch
322ef006ee Adopt to Mockito 5.1 changes.
Closes #1424
2023-03-30 11:19:46 +02:00
Christoph Strobl
103d7c0f8c Prepare next development iteration.
See #1440
2023-03-20 14:26:20 +01:00
Christoph Strobl
1158eec002 Release version 3.0.4 (2022.0.4).
See #1440
2023-03-20 14:22:49 +01:00
Mark Paluch
afe618738e Polishing.
Simplify TypeInformation creation from a MethodParameter.

Original pull request: #1356
See #1343
2023-03-15 17:02:28 +01:00
Jens Schauder
1226ca9be6 Convert only contents of collections using StringBasedJdbcQuery.
Contents of Iterables that aren't collections will not be converted individually.

Closes #1343
Original pull request: #1356
2023-03-15 17:02:16 +01:00
Jens Schauder
9893884a54 Polishing.
Simplify test.

Original pull request: #1356
See #1343
2023-03-15 17:02:16 +01:00
Mark Paluch
10ae1e2666 Apply custom converter for Collection-like values in queries.
We now apply converters only for Collection-like values and no longer to Iterable types.

Closes #1452
2023-03-15 16:46:07 +01:00
Mark Paluch
1fc5769eb2 Prepare next development iteration.
See #1428
2023-03-03 11:02:47 +01:00
Mark Paluch
ebeb455019 Release version 3.0.3 (2022.0.3).
See #1428
2023-03-03 10:59:34 +01:00
Mark Paluch
398df479a8 Prepare next development iteration.
See #1413
2023-02-17 11:02:26 +01:00
Mark Paluch
5ccb24a8ae Release version 3.0.2 (2022.0.2).
See #1413
2023-02-17 10:59:28 +01:00
Jens Schauder
26f2fb5812 Fixed Postgres scripts.
See #1406
See #1405
2023-02-14 11:05:25 +01:00
Mark Paluch
f3a7586db6 Polishing.
Simplify sanitizer. Add unit test.

See #1405
See #1406
Original pull request #1415
2023-01-26 09:41:06 +01:00
Jens Schauder
eff0c72126 SqlIdentifierParameterSource now sanitizes identifier names.
Closes #1405
See #1406
Original pull request #1415
2023-01-26 09:41:06 +01:00
Mikhail2048
e2422c2a83 Integration test added to demonstrate behavior when column names contain characters illegal for bind parameters.
See #1405
Related pull request #1406
Original pull request #1415
2023-01-26 09:41:06 +01:00
Mark Paluch
717c783218 Prepare next development iteration.
See #1388
2023-01-13 11:43:30 +01:00
Mark Paluch
444db60f06 Release version 3.0.1 (2022.0.1).
See #1388
2023-01-13 11:40:51 +01:00
Jens Schauder
1ff403e174 Allow empty Iterable arguments in JdbcAggregateTemplate again.
This also affects repositories since they delegate to the template.

Closes #1401
2023-01-03 09:44:54 +01:00
Mark Paluch
5d3e737393 Extend license header copyright years to 2023.
See #1398
2023-01-02 09:50:19 +01:00
Mark Paluch
01f82a8026 Prepare next development iteration.
See #1361
2022-11-18 14:30:30 +01:00
Mark Paluch
c244985b56 Release version 3.0 GA (2022.0.0).
See #1361
2022-11-18 14:26:23 +01:00
Dmitriy
559a4488ea Add Transactional annotation to deleteAllById.
Original pull request #1370
2022-11-15 16:23:04 +01:00
Christoph Strobl
5fbc68ef87 Add Nullable annotation to parameter of overridden equals method.
Closes #1374
Original pull request #1375
2022-11-11 16:05:59 +01:00
Mark Paluch
dac1729713 Prepare next development iteration.
See #1366
2022-11-04 15:26:38 +01:00
Mark Paluch
06e40a3f30 Release version 3.0 RC2 (2022.0.0).
See #1366
2022-11-04 15:23:17 +01:00
Mark Paluch
3b6c2f06ae Disable package cycle tests to unblock CI builds.
See #1366
2022-10-31 14:45:38 +01:00
Mark Paluch
61dcc5168b Prepare next development iteration.
See #1333
2022-10-13 17:31:15 +02:00
Mark Paluch
99ac540555 Release version 3.0 RC1 (2022.0.0).
See #1333
2022-10-13 17:24:26 +02:00
Jens Schauder
58bf5566b6 Dependency tests are now based on ArchUnit.
Replaced ignored tests with exclusion of packages and classes.
Upgraded ArchUnit dependency to 1.0.0.

Closes #1354
2022-10-10 13:27:59 +02:00
Jens Schauder
6bdc7db24b Offer a proper replacement for NamingStrategy.INSTANCE.
Closes #1350
2022-10-07 16:24:47 +02:00
Mark Paluch
795e244511 Polishing.
Do not expose setForeignKeyNaming methods on NamingStrategy to make less assumptions about how a naming strategy gets implemented. Provide getRequiredLeafEntity method on PersistentPropertyPathExtension to reduce null and state assertion checks.

Refine getTableName/getQualifiedTableName approach to reduce API surface and avoid deprecations.

See #1147
Original pull request: #1324.
2022-10-07 09:17:27 +02:00
Jens Schauder
e7d32bbea2 Polishing.
See #1162
Original pull request: #1324.
2022-10-07 09:17:21 +02:00
Jens Schauder
d7f2a27ee9 Revised default behaviour for back reference naming.
The new default is to take `@Table` annotations into account.

The behaviour can be configured by setting the `foreignKeyNaming` property on the `RelationalMappingContext`.

Closes #1162
See #1147
Original pull request: #1324.
2022-10-07 09:17:15 +02:00
Jens Schauder
40446f9ca9 The back reference generation is now configurable.
The default version is the behavior that existed so far:
The back reference is the table name as generated by the `NamingStrategy` without taking `@Table` annotations into account.

The new alternative is to take `@Table` into account.

The behavior can be configured by setting the `foreignKeyNaming` property on the `RelationalMappingContext`.

Closes #1161
Closes #1147
Original pull request: #1324.
2022-10-07 09:17:05 +02:00
Jens Schauder
004804aad8 Introduce @InsertOnlyProperty.
You may now annotate properties of the aggregate root with `@InsertOnlyProperty`.
Properties annotated in such way will be written to the database only during insert operations, but they will not be updated afterwards.

Closes #637
Original pull request #1327
2022-10-06 12:54:33 +02:00
Mark Paluch
76ea47ab16 Deprecate mutability of DelegatingDataAccessStrategy.
See: #1315
Original pull request: #1324.
2022-10-05 15:34:11 +02:00
Mark Paluch
26c5c5dd93 Polishing.
Use consistent method and argument names for newly introduced methods. Reorder and group template API methods to keep related methods together.

See: #1315
Original pull request: #1324.
2022-10-05 15:34:11 +02:00
Jens Schauder
aef1e34f5e Drop superfluous class argument from delete methods in JdbcAggregateTemplate.
Closes: #1315
Original pull request: #1324.
2022-10-05 15:34:11 +02:00
Jens Schauder
01e98dc171 Polishing.
See: #1315
Original pull request: #1324.
2022-10-05 15:34:11 +02:00
Jens Schauder
e171d4b91b Remove non-Javadoc comments.
These are no longer serve their purpose.

Closes #1347
2022-10-05 15:34:11 +02:00
Jens Schauder
ea00369f07 Add support for factory methods.
R2DBC now supports the use of factory methods for entity creation.
Spring Data JDBC already does so via f326897950

Simply annotate a static factory method on your entity class with `@PersistenceCreator`.

Closes #1346
See https://github.com/spring-projects/spring-data-commons/issues/2476
See f326897950
2022-10-05 15:34:10 +02:00
Jens Schauder
d1890e3b69 Reuse existing infrastructure for SpEL processing.
Original pull request #229
See #619
2022-09-30 12:29:12 +02:00
Christopher Klein
9abaa5a911 Support for SpEL inside @Query annotations.
Constructs like the following work now.

```
@Query("select u from User u where u.firstname = :#{#customer.firstname}")
List<User> findUsersByCustomersFirstname(@Param("customer") Customer customer);
```

Closes #619
Original pull request #229
See https://spring.io/blog/2014/07/15/spel-support-in-spring-data-jpa-query-definitions
2022-09-30 12:27:46 +02:00
Jens Schauder
f326897950 Removed deprecations.
Removed deprecated API and usasage of deprecated API.

Closes #1340
2022-09-28 12:02:46 +02:00
Jens Schauder
98ef3df478 Polishing.
Original pull request #1338
See #1329
2022-09-26 14:22:06 +02:00
Hari Ohm Prasth Rajagopal
9b6570452c Avoid exception for empty criteria.
Code changes to check for both null and empty criteria before proceeding to where clause generation avoids exception.

Closes #1329
Original pull request #1338
2022-09-26 14:22:06 +02:00
Spring Builds
3ab0731fe4 Prepare next development iteration.
See #1295
2022-09-19 14:39:01 +00:00