-->
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: converting this multiple join query to hibernate criteria
PostPosted: Mon Nov 19, 2007 6:40 am 
Newbie

Joined: Wed May 30, 2007 1:30 am
Posts: 2
i seem to have trouble converting this query to a criteria:

select * from song_downloads sd JOIN song s ON sd.song=s.id JOIN album a ON s.album=a.id JOIN record_label rl ON a.record_label=rl.id AND rl.id=1

a little help will be very much appreciated.


thanks in advance,


rey


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 19, 2007 2:18 pm 
Newbie

Joined: Fri Mar 30, 2007 5:23 pm
Posts: 16
Location: New York, NY
Rey, can you post your best try at it, and then I might be able to help point out any errors?


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.