-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: ICriteria problem specifying If ... Then....
PostPosted: Thu Jul 21, 2016 8:01 am 
Newbie

Joined: Thu Jul 21, 2016 7:44 am
Posts: 1
ICriteria criteria = session.CreateCriteria<TimesheetEntry>()
.CreateAlias("Employee", "e")
.CreateAlias("Employee.Payroll", "p")
.SetFetchMode("Gang", FetchMode.Eager)
.SetFetchMode("JobTitle", FetchMode.Eager)
.SetFetchMode("JobTitle.JobGrade", FetchMode.Eager)
.Add(Restrictions.Eq("Status", status))
.Add(Restrictions.In("p.ImportReference", payrollIds))

//Now we need to specify the from and to dates for each of the payrolls in payrollIds
=====================================================
.SetFirstResult((page - 1) * pageSize)
.SetMaxResults(pageSize);

//How do we achieve that.

//Any help is appreciated


Top
 Profile  
 
 Post subject: Re: ICriteria problem specifying If ... Then....
PostPosted: Thu Jul 21, 2016 11:00 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
Although we also have a NHibernate forum, I think this Google Group is more active and you should post your question there.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.