-->
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: Unions again ...
PostPosted: Tue Jul 27, 2004 1:12 pm 
Newbie

Joined: Tue Jul 27, 2004 12:33 pm
Posts: 2
Hello,

it looks like from the post on this forum that union won't be supported in HQL because it's not OO. I have a use case to submit.

I have a data model looking (in a simplified way) like the following:
Code:
    [A]
   /     \
[B]   [D]
  |       |
[C]   [E]
   \     /
    [F]


In my application someone is looking, at an instance of F and wants to see a set of object A. The set of object A is computed as the union of 2 queries going through the BC path for one and through the DE path for the others.

So I'm wondering how I can do this in an efficient way. Sure I can get all the objects from one path and the from the other and compute the set (but loading 1000 objects is not really efficient) or make some complex query ... Or maybe there is a proper hibernate way of doing things ?

Guillaume


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.