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

I spotted the word property, and if it had been "firstName" or something I'd 
have probably been a bit closer.  Because it was "name" it read "name of" so 
I thought it indicating that the following text was the name of something 
that was wrong, which led me to believe it was the table name that was 
wrong - HelloNHibernate.Employee

But I appreciate you helping me, thanks!  Hopefully it will start to make 
sense.


> 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

I could suggest adding quotes around the property name to emphasise it.


"could not resolve property 'name' of: HelloNHibernate.Employee [from
HelloNHibernate.Employee as emp order by emp.name asc]"


Still not sure I'd have guessed it was case sensitive though :-)



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

Reply via email to