You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-data-jdbc/src/test/java/org/springframework/data/jdbc/repository/SimpleJdbcRepositoryEventsUnitTests.java
Copy file name to clipboardExpand all lines: src/main/antora/modules/ROOT/pages/jdbc/entity-persistence.adoc
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,17 @@ This should be significant more efficient, especially for complex aggregates, co
30
30
+
31
31
Currently, Single Query Loading is restricted in different ways:
32
32
33
-
1. The aggregate must not have nested collections, this includes `Map`.The plan is to remove this constraint in the future.
33
+
1. The aggregate must not have nested collections, this includes `Map`.
34
+
The plan is to remove this constraint in the future.
34
35
35
-
2. The aggregate must not use `AggregateReference` or embedded entities.The plan is to remove this constraint in the future.
36
+
2. The aggregate must not use `AggregateReference` or embedded entities.
37
+
The plan is to remove this constraint in the future.
36
38
37
-
3. The database dialect must support it.Of the dialects provided by Spring Data JDBC all but H2 and HSQL support this.H2 and HSQL don't support analytic functions (aka windowing functions).
39
+
3. The database dialect must support it.Of the dialects provided by Spring Data JDBC all but H2 and HSQL support this.
40
+
H2 and HSQL don't support analytic functions (aka windowing functions).
38
41
39
-
4. It only works for the find methods in `CrudRepository`, not for derived queries and not for annotated queries.The plan is to remove this constraint in the future.
42
+
4. It only works for the find methods in `CrudRepository`, not for derived queries and not for annotated queries.
43
+
The plan is to remove this constraint in the future.
40
44
41
45
5. Single Query Loading needs to be enabled in the `JdbcMappingContext`, by calling `setSingleQueryLoadingEnabled(true)`
0 commit comments