You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, `BookQueries_.QUERY_10_BOOKS_BY_TITLE` is a constant with value `"10BooksByTitle"`, generated by the Hibernate Processor.
1273
+
Here, `BookQueries_.\_10BooksByTitle_` is an element of the JPA static metamodel of type `TypedQueryReference<Book>`, generated by Hibernate Processor.
1274
1274
1275
1275
Note that the code which executes the named query is not aware of whether the query was written in HQL or in native SQL, making it slightly easier to change and optimize the query later.
1276
1276
@@ -1293,9 +1293,9 @@ We can do almost anything via HQL, criteria, or native SQL queries.
1293
1293
But when we already know the identifier of the entity we need, a query can feel like overkill.
1294
1294
And queries don't make efficient use of the <<second-level-cache,second level cache>>.
1295
1295
1296
-
We met the <<persistence-operations,`find()`>> method earlier.
1297
-
It's the most basic way to perform a _lookup_ by id.
1298
-
But as we also <<entity-graph,already saw>>, it can't quite do everything.
1296
+
We met the `find()` and `findMultiple()` methods <<persistence-operations,earlier>>.
1297
+
These are the most basic ways to perform a _lookup_ by id.
1298
+
But they can't quite do everything.
1299
1299
Therefore, Hibernate has some APIs that streamline certain more complicated lookups:
0 commit comments