wciesiel wrote: That's exactly what I want: either have those two FKs in IC working as IC.PK(A,B) or add explicit IC.PK and add contraint Unique(IC.A_FK,IC.B_FK) (end of quote)
well, I think the easiest way to proceed is just modeling the many2many relationship and letting hibernate take care of it, if the generated DDL does not contain a primary key constraint over both foreign keys in IC you can always add it to the schema afterwards (small effort) I'm using HSQLDB and see that the hibernate schema-export tool nicely creates the primary key over both foreign keys, so I expect that to happen on all databases that support it -- Wouter Zoons - [EMAIL PROTECTED] http://www.andromda.org/ _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1396#1396 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user