quotes not needed for enum values in doc example

This commit is contained in:
Gavin King 2022-01-04 23:31:09 +01:00
parent e1d1d21a30
commit 31a795b8c7
1 changed files with 1 additions and 1 deletions

View File

@ -1931,7 +1931,7 @@ public class HQLTest extends BaseEntityManagerFunctionalTestCase {
List<Person> persons = entityManager.createQuery(
"select p " +
"from Person p " +
"where p.phones[0].type = 'LAND_LINE'",
"where p.phones[0].type = LAND_LINE",
Person.class)
.getResultList();
//end::hql-collection-index-operator-example[]