-->
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: Possible to selected timespan in filter
PostPosted: Tue Nov 23, 2010 9:30 am 
Newbie

Joined: Tue Nov 23, 2010 8:51 am
Posts: 1
I need a query that checks in a post is overlapping a already created one.

I have the following data:

Code:
NAME       VALID_FROM        VALID_TO
aaa        2010-02-01        2010-02-05
bbb        2010-02-05        2010-02-10
ccc        2010-02-10        2010-02-15

Is it possible to create a filer that could prevent creating an overlapping entry?

My objects
Code:
ddd        2010-02-01        2010-02-03        NOT VALID
eee        2010-02-15        2010-02-20        VALID
fff        2010-01-01        2010-02-02        NOT VALID


Is Filter Expression the right way to go?


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.