IQuery q = session.CreateQuery(hql); q.SetMaxResults(10).SetFirstResult(10);
IIRC, NH 2.1 or newer should use the .class property in HQL. On Wed, Feb 17, 2010 at 10:44 AM, kor <[email protected]> wrote: > i all, > i have a query where i need to filter the returned items using > SetFirstResult/SetMaxResult. > In this query i need to use the special property .class (in hql is > "... where p.MyAbstractProperty.class = ....". > > At the moment i didn't find a way to use the setFirst/MAx results with > hql or to get the class attribute with icriteria. > > There's a way to do once of this 2 things? > > thanks > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
