-->
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: de-duplication with pagination
PostPosted: Mon Sep 13, 2010 1:23 pm 
Newbie

Joined: Sun Sep 12, 2010 8:46 pm
Posts: 3
Hi,
Following is the relational table (on postgres)

Table A
id - int
count - int

Table B
id - int
A_id - int

There is one-to-many relation between A->B. For each unique row in Table A there could be more than 1+ child in Table B.

Both Table A and Table B can have large number of records.
So, I would be using the pagination feature of Hibernate.
My question :

I would like to use HQL so that I can only get one row from Table B for each unique A_id.


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.