-->
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: how to give Intersect clause in criteria 's expression
PostPosted: Wed Oct 06, 2004 5:23 am 
Beginner
Beginner

Joined: Wed Apr 21, 2004 8:33 am
Posts: 27
Hibernate version:2.0


Name and version of the database you are using:oracle9.2

hi,

how to use the sql intersect clause in Criteria and Expression

the requirement is we have a table of case_status which contains values like open,reopen,closed. and we have another table called case where every case can have one or more statuses.

there is a one-to-many mapping in the case table to the status table.

we want to retreive all records in the case table which have status1 and status2
where status1 and status2 are the criteria.

eq: we want to retreive all the cases which have both 'open' and 'reopen' status . how do we achiev this using Expression
Similarly we want to retreive all cases which has 'open' status and doesnot have 'closed' status.

thanks in advance for ur help


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.