You should also bare in mind that you're very early on in the book. Perhaps the example could've been structured better, but you're still only on the 2nd chapter; you can't expect everything to have been explained already otherwise you'd be at the end of the book. Sometimes you have to take a leap of faith and just trust that something will be explained later. HQL actually is explained anyway, just after the first appearance of it:
"The literal string "from Employee as emp order by emp.name asc" is an NH ibernate query, expressed in NHibernate's own object-oriented Hibernate Query Language (HQL). This query is internally translated into the following SQL when query.List() is called." On Sun, Feb 15, 2009 at 4:01 PM, Peter Morris <[email protected]> wrote: > > > To elaborate a little on what Ken said. HQL is the Hibernate Query > > Language, > > which means you're querying NHibernate rather than your database. It > > probably should have been mentioned in the book, but this means that your > > queries are case sensitive for entities (keywords are insensitive); rule > > of > > thumb is if you can't refer to an entity by it in C#, then you can't > refer > > to it like that in HQL either. > > Right, thanks for the info. The query looked a lot like a fragment of SQL > so (without an explanation of what it was) I assumed it was. I'm hoping it > gets better :-) The problem is with writing anything is getting a > knowledgable brain into the mindset of an unknowledgable one :-) > > > > Pete > ==== > http://mrpmorris.blogspot.com > http://www.capableobjects.com - Think domain, not database > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
