-->
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: Mapping a properties to other tables (Join not suitble)
PostPosted: Wed Jun 22, 2005 5:59 am 
Beginner
Beginner

Joined: Tue May 10, 2005 4:18 am
Posts: 29
Hello All
I would like to get your guidance for the mapping problem I have:

I have a class "Image". It is mapped to a table "Images" that holds the ID and name of the Image.
There is another table called "OLEObjects" which holds its own ID, an Image ID, and then the file name, image size and other technical info.

I have no use for an "OLEObject" class.

Now - in my class "Image" I need to map the "file size" "file name" etc properties from the OLEObject table.

The <join> element doesn't work for me, because in the "Image" table I do not have an "OLEObject ID" but rather the other way around (the link is from OLEObject to Image)

So I need something that will allow me to link the OLEObject using its ImageID field, and than get the "file name" "file size" values from it.

What is the best way to tackle this in Hibernate 3 ?

Thank you !

Elad


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.