-->
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: Multiple/Nested Join
PostPosted: Tue May 01, 2007 10:49 am 
Newbie

Joined: Tue May 01, 2007 10:40 am
Posts: 1
Hi,

I would like to be able to nest join elements in my mapping file so that i can select data from tables that are directly related to each other.

For example given the following table structure:

Table1
ID

Table2
ID
Table1ID

Table3
ID
Table2ID

Table4
ID
Table3ID
Data

I want to be able to use the following mapping:
<join table="Table2">
<key column="Table1Id"/>
<join table="Table3">
<key column="Table2ID" />
<join table="Table4">
<key column="Table3" />
<property name="Data" column="Data" />
</join>
</join>
</join>

The schema at the moment only seems to support having a single join in a class mapping file. Does anyone know if this is possible?

Thanks


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.