-->
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: help with query
PostPosted: Sat Oct 16, 2004 11:13 pm 
Newbie

Joined: Sat Oct 16, 2004 11:04 pm
Posts: 2
Hibernate version: 2.1.6

Hello, I have the following query that runs fine in MySQL,
but I cannot run it in hibernate. Anyone can give me hints on how to write the HQL equivelent wins a cookie! :)

query "find all phone#s NOT in internal or external do not call list"
see sql code below...

Structure,
I have 3 independent tables:
tables:
Vendor
do_not_call_client
internal_do_not_call_client

Classes:
I have 3 corresponding classes, no inhertance or anything...


i haven't defined any relationships amongst them.

here is the sql:

Code:
select v.*
from vendor as v
left join do_not_call_client as dcl on v.phonenumber=dcl.phonenumber
left join internal_do_not_call_client as idcl on v.phonenumber=idcl.phonenumber
where dcl.phonenumber is null and idcl.phonenumber is null ;


Top
 Profile  
 
 Post subject: (Repost)
PostPosted: Sun Oct 17, 2004 7:05 pm 
Newbie

Joined: Sat Oct 16, 2004 11:04 pm
Posts: 2
no one has replied..anyone out there willing to help?


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.