Near the bottom of page 44 the following sentence appears:
Quote:
The literal string "from Message as message order by message.text asc" is a Hibernate query, expressed in Hibernate’s own object-oriented query language, HQL.
The mis-match is the part that says:
Quote:
from Message as message order by message.text
In both the grey box at the bottom of page 44 and the grey box/sample source on page 43, the from and order-by clause instead appear as:
Quote:
from Message m order by m.text
Personally, I prefer the more verbose version of the from/order-by clause that appears in the explanatory text instead of the versions in the code that abbreviate "as message" with "m" - but that's because I'm still not all that comfortable with SQL - even after years of occasional exposure to it.
Thanks,
Bill