-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: new book - Chapter 2 - example mis-match
PostPosted: Fri Sep 22, 2006 9:03 am 
Newbie

Joined: Thu Dec 08, 2005 3:54 pm
Posts: 11
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 22, 2006 10:57 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Again, this has been fixed some time ago. You are reading an unedited draft. Please report only major conceptual issues with the book, not typos.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.