diff --git a/documentation/src/main/asciidoc/userguide/chapters/query/hql/Query.adoc b/documentation/src/main/asciidoc/userguide/chapters/query/hql/Query.adoc index 4db408abf7..5f12b6e60d 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/query/hql/Query.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/query/hql/Query.adoc @@ -351,7 +351,7 @@ include::{sourcedir}/HQLTest.java[tags=hql-api-basic-usage-example] ==== [[hql-api-result-transformers]] -=== Query result transformers +==== Query result transformers A program may hook into the process of building the query results by providing a `org.hibernate.transform.ResultListTransformer` or `org.hibernate.transform.TupleTransformer`. diff --git a/documentation/src/test/java/org/hibernate/userguide/hql/SelectDistinctTest.java b/documentation/src/test/java/org/hibernate/userguide/hql/SelectDistinctTest.java index 014f900409..55f4c33f15 100644 --- a/documentation/src/test/java/org/hibernate/userguide/hql/SelectDistinctTest.java +++ b/documentation/src/test/java/org/hibernate/userguide/hql/SelectDistinctTest.java @@ -43,18 +43,18 @@ public class SelectDistinctTest extends BaseEntityManagerFunctionalTestCase { public void init() { doInJPA(this::entityManagerFactory, entityManager -> { Person gavinKing = new Person("Gavin", "King"); - Person stephanKing = new Person("Stephen", "King"); + Person stephenKing = new Person("Stephen", "King"); Person vladMihalcea = new Person("Vlad", "Mihalcea"); gavinKing.addBook(new Book("Hibernate in Action")); gavinKing.addBook(new Book("Java Persistence with Hibernate")); - stephanKing.addBook(new Book("The Green Mile")); + stephenKing.addBook(new Book("The Green Mile")); vladMihalcea.addBook(new Book("High-Performance Java Persistence")); entityManager.persist(gavinKing); - entityManager.persist(stephanKing); + entityManager.persist(stephenKing); entityManager.persist(vladMihalcea); }); }