This is an automated email from the ASF dual-hosted git repository. jdaugherty pushed a commit to branch grails-geb in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit eea5098561d1b544ce1e78a6c77e847090527bb7 Author: James Daugherty <[email protected]> AuthorDate: Tue Apr 22 11:00:28 2025 -0400 fix documentation syntax for item retrieval from a list --- .../docs/src/docs/asciidoc/domainClasses/sets,ListsAndMaps.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grails-data-hibernate5/docs/src/docs/asciidoc/domainClasses/sets,ListsAndMaps.adoc b/grails-data-hibernate5/docs/src/docs/asciidoc/domainClasses/sets,ListsAndMaps.adoc index 830457cbcf..fdd4f98c7c 100644 --- a/grails-data-hibernate5/docs/src/docs/asciidoc/domainClasses/sets,ListsAndMaps.adoc +++ b/grails-data-hibernate5/docs/src/docs/asciidoc/domainClasses/sets,ListsAndMaps.adoc @@ -60,7 +60,7 @@ In this case when you add new elements to the books collection the order is reta [source,groovy] ---- -author.books<<0>> // get the first book +author.books[0] // get the first book ---- The way this works at the database level is Hibernate creates a `books_idx` column where it saves the index of the elements in the collection to retain this order at the database level.
