mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 22:39:13 +00:00
improve code example of tuple criteria
This commit is contained in:
parent
2728cbe014
commit
c85cd22956
@ -891,7 +891,7 @@ Consider the following code:
|
||||
[source,java]
|
||||
----
|
||||
var cb = sessionFactory.getCriteriaBuilder();
|
||||
var query = cb.createQuery(Tuple.class);
|
||||
var query = cb.createTupleQuery();
|
||||
var book = query.from(Book.class);
|
||||
var bookTitle = book.get(Book_.title);
|
||||
var bookIsbn = book.get(Book_.isbn);
|
||||
|
Loading…
x
Reference in New Issue
Block a user