Skip to content

Commit 7364896

Browse files
Update _posts/2025-06-18-hibernate7-on-quarkus.adoc
Co-authored-by: Yoann Rodière <[email protected]>
1 parent 4ddb8aa commit 7364896

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_posts/2025-06-18-hibernate7-on-quarkus.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ In the meantime, you can always refer to the https://quarkus.io/version/main/gui
6060
==== New Restrictions API
6161
After the deprecation of the Hibernate Criteria API, developers were still missing its simplicity, so the Hibernate team introduced a new https://docs.jboss.org/hibernate/orm/7.0/introduction/html_single/Hibernate_Introduction.html#restrictions-and-ordering[Restriction API] that even has new features, such as the possibility to further restrict an already written query using JPQL/HQL.
6262

63-
[source,text]
63+
[source,java]
6464
----
65-
var books =
65+
List<Book> books =
6666
SelectionSpecification.create(Book.class,
6767
"""
6868
from Book where discontinued = false

0 commit comments

Comments
 (0)