-->
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: Criteria sub query count
PostPosted: Mon Jul 11, 2005 11:30 am 
Beginner
Beginner

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

I have a User Object with a one-to-many to Transaction Object (for instance)...

Therefore, one user can have many transactions...

Using the Hibernate (3) Criteria API, I want to say "get me all User objects who have not got any Transactions..."

But I have not found a way to do this using the Criteria API.. I have tried detached queries, count 0.. etc.. but cant get anything to work...

Does anyone know how to do this?


Hibernate version:3.0.5


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.