-->
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: criteria date inquery
PostPosted: Mon Jun 28, 2010 9:33 am 
Newbie

Joined: Mon Jun 28, 2010 9:23 am
Posts: 2
I'm looking for direction as it relates to hibernate criteria, here is the problem.

I have a start date and end date on my Entity.
Code:
@Entity
public class E implements Serializable {
    private Date start;
    private Date end;
}


I want to lookup to see if today's date is between these dates. Is there any way to do this using hibernate criteria or do I need to go hql route?

Any help will be appreciated.

Thanks ahead of time...


Top
 Profile  
 
 Post subject: Re: criteria date inquery
PostPosted: Mon Jun 28, 2010 10:16 am 
Newbie

Joined: Mon Jun 28, 2010 9:23 am
Posts: 2
nm.

I have a case of the weekend hang overs....


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.