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.

On Sun, Feb 15, 2009 at 1:56 PM, Ken Egozi <[email protected]> wrote:

> just remember - HQL (and criteria API) are about OBJECTs not Database
> fields.
> and please do take notice to the error messages. They tend to be very
> informative - the use of 'property' should have raised the red flag for you.
>
> And should you happen to find a typo of a non-informative error message, I
> bet that the devs of NH will gladly accept input
>
>
> On Sun, Feb 15, 2009 at 3:50 PM, Peter Morris <[email protected]> wrote:
>
>>
>> Ken.
>>
>> Yes, you are correct, thank you very much!  I would never have suspected
>> case sensitivity!
>>
>> Pete
>> ====
>> http://mrpmorris.blogspot.com
>> http://www.capableobjects.com - Think domain, not database
>>
>>
>>
>>
>
>
> --
> Ken Egozi.
> http://www.kenegozi.com/blog
> http://www.delver.com
> http://www.musicglue.com
> http://www.castleproject.org
> http://www.gotfriends.co.il
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to