Commit Graph

392 Commits

Author SHA1 Message Date
Jens Schauder
fdc85a91ff Explain custom RowMapper and ResultSetExtractor.
Closes #650
2023-10-19 16:42:40 +02:00
Jens Schauder
778d368725 Improve documentation about custom conversion registration.
Closes #1625
2023-10-17 13:25:57 +02:00
Jens Schauder
28d40b017a Improve documentation for mapping sets.
The documentation now correctly states that the back reference name can by customized via annotation.

Closes #797
2023-10-16 11:01:23 +02:00
John Blum
4c0e10fca7 Prepare 3.2 RC1 (2023.1.0).
See #1614
2023-10-13 08:43:57 -07:00
Mark Paluch
a72bf1a65d Polishing.
Delegate BatchJdbcOperations calls to NamedParameterJdbcOperations. Refine since and deprecation tags.

See #1616
2023-10-11 09:54:44 +02:00
Jens Schauder
9e41d25d15 Support Single Query Loading for aggregates with more than one collection.
Closes #1448
Original pull request: #1622
2023-09-27 10:04:55 +02:00
Mark Paluch
3b9e0626da Prepare 3.2 M3 (2023.1.0).
See #1592
2023-09-15 15:06:53 +02:00
Mark Paluch
5fd9951060 Fix links to spring.io docs.
Closes #1571
2023-09-13 15:08:04 +02:00
Mark Paluch
c50942a2a8 Polishing.
Use dynamic copyright year for docs.

See #1597
2023-09-11 09:00:00 +02:00
Mark Paluch
24d3584488 Polishing.
Update documentation URL.

See #1597
2023-09-08 11:57:17 +02:00
Mark Paluch
99a8b01809 Harmonize content.
Refactor content to a natural flow, remove duplications, extract partials.

See #1597
2023-09-01 11:14:02 +02:00
Mark Paluch
4202b090ed Migrate documentation to Antora.
Closes #1597
2023-08-31 11:56:42 +02:00
Julia Lee
0c39621c73 Prepare 3.2 M2 (2023.1.0).
See #1562
2023-08-18 08:49:41 -04:00
Jens Schauder
93821f5f42 Enable Single Query Loading for simple aggregates.
Single Query Loading loads as the name suggests complete aggregates using a single select.
While the ultimate goal is to support this for all aggregates, this commit enables it only for simple aggregate and also only for some operations.
A simple aggregate is an aggregate that only reference up to one other entity and does not have embedded entities.
The supported operations are those available via `CrudRepository`: `findAll`, `findById`, and `findAllByIds`.

Single Query Loading does NOT work with the supported in memory databases H2 and HSQLDB, since these do not properly support windowing functions, which are essential for Single Query Loading.

To turn on Single Query Loading call `RelationalMappingContext.setSingleQueryLoadingEnabled(true)`.

Closes #1446
See #1450
See #1445
Original pull request: #1572
2023-08-15 10:16:41 +02:00
Mark Paluch
290fea4ae3 Prepare 3.2 M1 (2023.1.0).
See #1511
2023-07-14 14:52:14 +02:00
Mark Paluch
c55a54e613 Polishing.
See #1538
2023-06-15 09:17:46 +02:00
Mark Paluch
b07abd7afc Update event documentation to reflect the notification-only aspect of lifecycle events.
Closes #1538
2023-06-13 14:39:15 +02:00
Mark Paluch
6b3819c6db Use snapshot and milestone repositories instead of libs-snapshot and libs-milestone.
Closes #1527
2023-06-06 09:59:33 +02:00
Mark Paluch
b35c7cb317 Add documentation.
See #756
Original pull request: #1520
2023-06-06 08:51:22 +02:00
Mark Paluch
064b3d3da7 Move Projections documentation to the top level.
Closes #1515
2023-05-30 15:18:50 +02:00
Christoph Strobl
370b757a2c Prepare 3.1 GA (2023.0.0).
See #1498
2023-05-12 14:14:09 +02:00
Greg L. Turnquist
6fc4243327 Prepare 3.1 RC1 (2023.0.0).
See #1456
2023-04-14 11:53:26 -05:00
Christoph Strobl
16241e1288 Prepare 3.1 M3 (2023.0.0).
See #1430
2023-03-20 15:01:20 +01:00
Kurt Niemi
5c16a753ea Fix broken links in reference documentation.
Closes #1412
Original pull request #1453
2023-03-17 09:42:19 +01:00
Christoph Strobl
6252318df3 Prepare 3.1 M2 (2023.0.0).
See #1429
2023-02-17 14:22:18 +01:00
Christoph Strobl
d2f3e3faa6 Prepare 3.1 M1 (2023.0.0).
See #1389
2023-02-17 13:27:11 +01:00
Mark Paluch
690488ef99 Prepare 3.0 GA (2022.0.0).
See #1361
2022-11-18 14:26:13 +01:00
Levani Kokhreidze
bb23f86d11 Fix jdbc-custom-conversions.adoc Java code snippet alignment.
Original pull request #1369
2022-11-16 10:26:28 +01:00
Jens Schauder
5349fde133 Replace New and Noteworthy with links to release notes.
Closes #1351
Original pull request #1352
See spring-projects/spring-data-commons#2723
2022-11-10 10:34:31 +01:00
Mark Paluch
e0a5f88b56 Prepare 3.0 RC2 (2022.0.0).
See #1366
2022-11-04 15:23:07 +01:00
Mark Paluch
debf0b7563 Prepare 3.0 RC1 (2022.0.0).
See #1333
2022-10-13 17:24:05 +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
15796b88fe Fix broken includes in reference documentation.
Closes #1349
2022-10-06 14:53:40 +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
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
Spring Builds
2c28684347 Prepare 3.0 M6 (2022.0.0).
See #1295
2022-09-19 14:13:05 +00:00
Jens Schauder
09dfbf14a3 Clarify that events and callbacks documentation.
Events and callbacks only get triggered for aggregate roots.

Closes #1328
2022-09-14 13:55:30 +02:00
Jens Schauder
bf356f561d Clarify documentation for @Modifying.
Modifying queries are executed directly against the database.
No events or callbacks get called.
Therefore also fields with auditing annotations do not get updated if they don't get updated in the annotated query.

Closes #970
2022-09-08 15:31:17 +02:00
Jens Schauder
7a4143fb50 Changelog removed.
Closes #1013
2022-09-08 15:22:46 +02:00
Jens Schauder
fcbecda414 Remove the namespace reference and links to it.
Closes #1290
See https://github.com/spring-projects/spring-data-commons/issues/2662
Original pull request #1298
2022-07-26 10:16:02 +02:00
Mark Paluch
d79ba7911f Allow disabling entity lifecycle events.
We now support disabling lifecycle events through the Template API to reduce the framework overhead when events are not needed.

Closes #1291
2022-07-21 09:49:42 +02:00
Christoph Strobl
2a101fea35 Prepare 3.0 M5 (2022.0.0).
See #1247
2022-07-15 15:17:58 +02:00
Jens Schauder
27e2aa285a Documentation for Query By Example.
Original pull request #1195
See #1192
2022-07-13 12:54:53 +02:00
Jens Schauder
dcd4ef0cdc Support readonly properties for references.
The `@ReadOnlyProperty` annotation is now honoured for references to entities or collections of entities.

For tables mapped to such annotated references, no insert, delete or update statements will be created.
The user has to maintain that data through some other means.
These could be triggers or external process or `ON DELETE CASCADE` configuration in the database schema.

Closes #1249
Original pull request #1250
2022-05-23 10:42:31 +02:00
Christoph Strobl
fd86f429e7 Prepare 3.0 M4 (2022.0.0).
See #1206
2022-05-13 10:43:21 +02:00
Jens Schauder
4353dc8e06 Improve and clarify documentation of callbacks.
This also removes deprecated Events and Callbacks.

Closes #1236
2022-05-11 15:45:03 +02:00
Mark Paluch
6ffe53553a Prepare 3.0 M3 (2022.0.0).
See #1205
2022-03-22 14:00:02 +01:00
Chirag Tailor
2ee908c217 Update java and reference doc info on lifecycle events/callbacks.
Original pull request #1200
2022-03-22 13:23:42 +01:00
Mark Paluch
cd6e47cae4 Prepare 3.0 M2 (2022.0.0).
See #1132
2022-03-21 16:34:38 +01:00