-->
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: Hibernate query to return all the rows from first table
PostPosted: Mon Nov 23, 2009 8:34 pm 
Newbie

Joined: Mon Nov 23, 2009 8:29 pm
Posts: 1
Hi Friends, Following is the requirement for me

i am having two tables called vendor and dailyactivity
Total transactions done by a vendor for everyday will be stored dailyactivity table
now i need to get all the vendors and their transaction count if any in dailyactivity i.e it should return all the vendors and if they have transactions in dailyactivity it should return the value else it should return 0.

I heard that we can do this using left join, but i am not clear how to do that in hibernate


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.