-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to do three level outer join query?
PostPosted: Thu Oct 05, 2006 6:50 pm 
Newbie

Joined: Wed Sep 20, 2006 2:57 pm
Posts: 16
Location: Encinitas, CA
Still looking for some real help with this question.
We're using Hibernate 3.1 and writing java code with Eclipse.

Suppose our application domain has these aspects:

1. Cases contain boxes.
2. Boxes contain items.
3. Sometimes a case or a box is empty.
4. Sometimes a box or item is loose and has no parent container.

We think our database is properly designed. It has three tables: case, box and item. They have these fields

case.id
case.barcode

box.id
box.case_id
box.position_in_case

item.id
item.barcode
item.position_in_box

We need to display a list that has the following in each row:

case.barcode
box.position_in_case
box.barcode
item.position_in_box
item.barcode

How do we write a query to return a list of objects to populate the list?

TIA,
BE


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 13, 2006 7:22 pm 
Newbie

Joined: Wed Sep 20, 2006 2:57 pm
Posts: 16
Location: Encinitas, CA
Dear self,
No replies, huh?

Tough luck.

Suck it up.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.