Skip to content

Commit 4384fb5

Browse files
committed
Polishing.
Tweak wording. See: #3286 Original pull request: #3449
1 parent fe11f81 commit 4384fb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/antora/modules/ROOT/pages/repositories/projections.adoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ include::{commons}@data-commons::page$repositories/projections-class.adoc[levelo
1818

1919
[NOTE]
2020
====
21-
Some JPA providers may require additional hints when working with <<projections.dtos,Class-based projections>> especially when using those directly with method derived queries.
22-
If you are facing errors like `JpaSystemException: Specified result type did not match Query selection type` make sure to provide a constructor hint via `@PersistenceCreator` to be passed on, as outlined below:
21+
<<projections.dtos,Class-based projection (DTO projections)>> types must declare a single constructor so that Spring Data can determine its input properties.
22+
If your class defines more than one constructor, then you cannot use the type without further hints for DTO projections.
23+
In such a case annotate the desired constructor with `@PersistenceCreator` as outlined below so that Spring Data can determine which properties to select:
2324
2425
[source,java]
2526
----

0 commit comments

Comments
 (0)