-->
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: QBC Not exists subselect
PostPosted: Wed Feb 16, 2005 12:15 pm 
Beginner
Beginner

Joined: Thu Oct 14, 2004 5:07 am
Posts: 37
Location: Cambridge, UK
Hi

I have the following SQL to convert to Criteria (if possible)... I have not seen any examples of this, can anyone suggest if it is possible?

Obviously, the select * from trkdba.fleet_vehicles where fleet_uuid = 394

has already been ported to Criteria... but I am not sure how to go about converting the NOT EXISTS part..

select * from trkdba.fleet_vehicles where fleet_uuid = 394 and
NOT EXISTS (select * from trkdba.fleet_vehicles_vor where
fleet_uuid = 394



Hibernate version:2.1.7

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 16, 2005 1:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You can do that in H3, there are supquery examples in org.hibernate.test.criteria package and in my blog post at http://www.javablogs.com/Jump.action?id=198498


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.