-->
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: Query in hibernate
PostPosted: Tue Jul 13, 2004 5:01 pm 
Newbie

Joined: Mon Jul 05, 2004 8:37 am
Posts: 15
I'm replacing some beans with hibernate objects and I came across a situation I don't know how to handle. I have the following query:

select desc FROM table_A WHERE desc NOT IN (SELECT desc FROM table_b WHERE ID = ? AND JLOCAT = ?)

desc is a pk in table_A but not in table_b. There are no foreign keys in either table.

I am not sure how to do the not command in hibernate and also join the queries together. Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 14, 2004 4:15 am 
Senior
Senior

Joined: Fri May 14, 2004 9:37 am
Posts: 122
Location: Cologne, Germany
http://www.hibernate.org/hib_docs/refer ... teria.html
Perhaps this will give you the clue. Expression has also a not method.

regards

Olaf


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.