-->
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.  [ 1 post ] 
Author Message
 Post subject: Problem in making sub -query in Hibernate Criteria query ?
PostPosted: Mon Jan 18, 2010 1:37 am 
Newbie

Joined: Mon Jan 18, 2010 1:28 am
Posts: 1
Hi,
Iam facing a problem in creating a sub query in Criteria.

What i want. i want to call a DAO where iam passing 'effective Date' as well as a parameter to get the filtered record means i want to fire a criteria query where i will get some records and now on those records i want to get the max or latest of record based on the 'effective date' passed.
For e.g.

Called
A(effective date)
{
criteria query
}

suppose 10 records are found with random effective dates in it and the effective date passed is 10th jan 2010 then it should return that particular record which is less than the effect. date provided and Max of effective date (in those 10 records).
thank you


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

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.