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.  [ 3 posts ] 
Author Message
 Post subject: Association with an attribute which not a primary key
PostPosted: Wed Jun 20, 2007 6:33 am 
Newbie

Joined: Wed Jun 20, 2007 6:16 am
Posts: 6
To begin, escuse my language, I'm a french guy ...

Is it possible to do an assiocation between an attribute of class 'A' and an attribute of class 'B' which not a primary key ?

If is possible, How ??


Thanks for response.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 20, 2007 1:42 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Well, I'm not sure I understood what you want... Though I'm french too :-).

What type of association is there between your A and your B, and more important : which multiplicity (cardinalité, multiplicité, quoi) is there between those ?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 20, 2007 1:59 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Romain007: look for property-ref attribute in the documentation. It applies to <many-to-one> and <one-to-one>.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.