-->
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: @ManyToMany with data in the association table
PostPosted: Tue Nov 01, 2005 6:50 am 
Newbie

Joined: Tue Nov 01, 2005 6:41 am
Posts: 1
I am sorry if advance, if my post is not properly formatted or my question was somewhere in the documentation (I wasn't able to found it).

I am using EJB3 with JBoss/Hibernate. I want to make a many-to-many relationship between two entities (say, Person and City) and store some additional data for that association in the association talbe (for examlpe, the last time a given Person has visited a given city). How could I do that?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 3:31 am 
Newbie

Joined: Sun Oct 30, 2005 2:38 pm
Posts: 9
Location: Goodyear, AZ
Well, with classic Hibernate, you would create an entity to map the association table. Then it's really just two 1-to-many relationships. I would guess EJB3 would work the same way.

Eric


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 6:51 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
cybermac912 wrote:
Well, with classic Hibernate, you would create an entity to map the association table. Then it's really just two 1-to-many relationships. I would guess EJB3 would work the same way.

Eric

yep same concepts

_________________
Emmanuel


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.