gabrielf (7) [Avatar] Offline
#1
From page 281 chapter 7.5.3

"HQL supports subqueries in the where clause. We can’t think of many good uses for subqueries in the from clause., although select clause. subqueries might be a nice future extension."

Seems like there are to many periods in there.
gabrielf (7) [Avatar] Offline
#2
Re: Chapter 7 - small error
In the same chapter on page 282:

"from User u where 10 < (
select count(i) from u.items i where i.successfulBid is not null
)

This is a correlated subquery—it refers to an alias (user) from the outer query."

The alias used in the query and in the text doesn't match.
gabrielf (7) [Avatar] Offline
#3
Re: Chapter 7 - small error
In the same chapter and on the same page (282):

"in (a synonym for = any)"

In the pdf the wrong font is used for the word "for".
gabrielf (7) [Avatar] Offline
#4
Re: Chapter 7 - small error
Ok, this is just a matter of style but the wouldn't the following code look nicer written with a while loop?

for ( ; items.hasNext(); )

It can be found on page 288