-->
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: Mapping one-to-one association across three tables
PostPosted: Mon Jun 13, 2005 6:08 am 
Newbie

Joined: Mon Feb 07, 2005 10:56 pm
Posts: 2
I have three tables with the following struture:

client [ client_id, ...]
licence [licence_id, client_id, ...]
photo [ photo_id, client_id, ...]

I want to have an association where the Client object contains the Photo object. it is a one-to-one association - though not enforced by the schema.

This scema has been implemented very akwardly - and (of course) cant be changed..

is there a way to map this ? Is it a one-to-one with a formula that performs the join ?

thanks for any help.
regards,
mark.


Top
 Profile  
 
 Post subject: duh
PostPosted: Mon Jun 13, 2005 9:04 pm 
Newbie

Joined: Mon Feb 07, 2005 10:56 pm
Posts: 2
Sorry ...
i meant the Licence object should contain reference to it's Photo object.
Both are entitites.


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.