two very minor doc fixes

This commit is contained in:
Gavin King 2022-01-06 23:26:21 +01:00
parent 86025a9af8
commit a1ea84a3ac
2 changed files with 4 additions and 4 deletions

View File

@ -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`.

View File

@ -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);
});
}