-->
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: Map many-to-many relation with attribute
PostPosted: Thu Nov 06, 2008 4:50 am 
Newbie

Joined: Thu Feb 14, 2008 5:34 am
Posts: 8
NHibernate version: 2.0

Is it possible to map a many-to-many relation that has an attribute?

I have three tables for my many-to-many relation:

Observer -- relObserverSpecies -- Species

I can map this relation, using a bag, without problems, but my relObserverSpecies doesn't only contain the id's of my Observer and Species table but also a Projectcode that is an attribute of my relation.
Is there a way to map this in NHibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 07, 2008 9:53 am 
Newbie

Joined: Thu Feb 14, 2008 5:34 am
Posts: 8
At least someone should have had this problem?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 08, 2008 10:55 pm 
Newbie

Joined: Mon Oct 20, 2008 5:22 am
Posts: 6
You can try using composite-element.

http://www.hibernate.org/118.html#A10


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.