-->
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 Level Relational Mapping (nested joins)
PostPosted: Tue Aug 26, 2008 6:41 am 
Newbie

Joined: Tue Aug 26, 2008 6:39 am
Posts: 2
Hi, I didn't find a better title for my question... maybe that's the
reason i didn't find anything on google...

Anyway, suppose i have a
Supplier, Product and a Category Table, just like in here:

http://devlicio.us/blogs/billy_mccaffer ... performi...

I want each instance of Category to have a list of it's product
suppliers.

Category
IList (or something) Suppliers

Is it possible to achive this using only the mapping file (and not
writing a criteria in the getter of that property, or some other
technique)?
I've read a little about the <join> element in the mapping file, but i
need something like a nested join...

By the way... Can i map joins arbitrary levels deep?

For example, Adding a "company_id" field to the "Supplier" table and
another "Company" table, and supporting the following mapping:

Category
IList (or something) Companies

Sorry it gets pretty complicated, but I have a legacy database that
other applications are depending on and i can't change it...

Thanks in advance,
Erik.


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.