-->
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: many-to-many with join table having identity column
PostPosted: Sun May 08, 2005 6:25 am 
Regular
Regular

Joined: Mon Apr 25, 2005 9:22 am
Posts: 62
Location: Bucharest/Romania
Hibernate version: 3.0.2

Table description
TableA:
ID LONG (PK)
[...] other columns

TableB
ID LONG (PK)
[...] other columns

ATOB
ID LONG (PK)
ID_A LONG (FK to TableA)
ID_B LONG (FK to TableB)

Mapping documents:
Unidirectional many-to-many:
Exactly as in the documentation (page 74: 7.3.4 Unidirectional many-to-many association)

I have scanned the forum with no success for this, but I have the feeling I have read the solution somewhere (so I am very sorry that I still have to ask it).

1/ How should the mapping be in the above case?

2/ In case I use above mentioned unidirectional many-to-many association mapping (so ignoring the identity column) is there any drawback?

greatfully,


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.