Skip to content

Commit 3ab36fa

Browse files
committed
Polishing.
Use Javadoc macro. Reformat code. See #3544
1 parent bf36d1c commit 3ab36fa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33

44
include::{commons}@data-commons::page$repositories/projections.adoc[leveloffset=+1]
55

6-
NOTE: It is important to note that <<projections.dtos,Class-based projections>> with JPQL is limited to *constructor expressions* in your JPQL expression, e.g. `SELECT new com.example.NamesOnly(u.firstname, u.lastname) from User u`. (Note the usage of a FQDN for the DTO type!) This JPQL expression can be used in `@Query` annotations as well where you define any named queries. And it's important to point out that class-based projections do not work with native queries AT ALL. As a workaround you may use named queries with `ResultSetMapping` or the Hibernate specific https://docs.jboss.org/hibernate/orm/6.0/javadocs/org/hibernate/query/TupleTransformer.html[`TupleTransformer`] and https://docs.jboss.org/hibernate/orm/6.0/javadocs/org/hibernate/query/ResultListTransformer.html[`ResultListTransformer`]
6+
NOTE: It is important to note that <<projections.dtos,Class-based projections>> with JPQL is limited to *constructor expressions* in your JPQL expression, e.g. `SELECT new com.example.NamesOnly(u.firstname, u.lastname) from User u`.
7+
(Note the usage of a FQDN for the DTO type!) This JPQL expression can be used in `@Query` annotations as well where you define any named queries.
8+
And it's important to point out that class-based projections do not work with native queries AT ALL.
9+
As a workaround you may use named queries with `ResultSetMapping` or the Hibernate-specific javadoc:{hibernatejavadocurl}org.hibernate.query.ResultListTransformer[]

src/main/antora/resources/antora-resources/antora.yml

+1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ asciidoc:
1616
spring-framework-docs: '{springdocsurl}'
1717
spring-framework-javadoc: '{springjavadocurl}'
1818
springhateoasversion: ${spring-hateoas}
19+
hibernatejavadocurl: https://docs.jboss.org/hibernate/orm/6.6/javadocs/
1920
releasetrainversion: ${releasetrain}
2021
store: Jpa

0 commit comments

Comments
 (0)