Hello, I would like to use the criteria API to implement a query
builder that would build complex search queries from simple
predicates. I thought I could use HQL for expressing predicates like
"User.Supervisor.Name = 'John Smith'" and then convert such predicates
to criteria (by parsing them with Expression.Sql) and join them with
Expression.And/Expression.Or. But it appears that Expression.Sql will
only handle raw SQL and not HQL (I don't know why I thought it will
parse HQL). So, my question is if there's a way to parse HQL
expressions and convert them to criteria objects?

Best regards
Rafal
--~--~---------~--~----~------------~-------~--~----~
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