-->
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: non-equi join in mapping file (hibernate 2)
PostPosted: Thu May 19, 2005 1:20 pm 
Newbie

Joined: Wed Mar 16, 2005 10:18 am
Posts: 4
Hi all,

for a whole day I'm trying to build a mapping file in hibernate 2.x which does a non equi join.

I have two tables:

log (
id int primary key,
min_item_id int,
max_item_id int);

and

item (
id int primary key,
...
);

What I need to have is a collection of items for a log-object, i.e. "where id between minItemId and maxItemId" (id from item and min/maxItemId from log).

I tried to play with "set" and a "where" clause but didn't get it to work.

Is it possible at all? And if so could someone be so nice to give me a hint how to solve it? I think I read about this, but couldn't find neither in HIA nor the online docs.

TIA! - Bernd


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.