-->
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: Modelling question
PostPosted: Tue Dec 09, 2003 4:44 am 
Beginner
Beginner

Joined: Fri Nov 28, 2003 6:57 am
Posts: 20
Hi,

I'm not sure about how to model the following case:

- I have business objects (vendors) and make a comparison of each pair of them, so a comparison is always related to two business objects
- The comparison is symetric, so I only want to have one comparison dataset: aRb or bRa but not both.
- I need a query which gets a business object (a) and returns all other business objects (b), so that a comparison result exists: aRb or bRa

Has anyone a hint how to model this cleanly? Currently I have a result object with two fields for the business object, but with that I always have to write something like "select result.firstVendor where result.secondVendor = paramValue union select result.secondVendor where result.firstVendor = paramValue"...

Thanks in advance,

Thorsten


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.