Joined: Wed Oct 18, 2006 5:54 am Posts: 7
|
I use annotations for the mappings. I want Hibernate to create a join table with 3 columns (one as id and the others as foreign keys) instead of the standard way with 2 columns that are both primary and foreign keys. In my application I have around 50 manytomany associations, so adding @Entity class for each join table is out of the question. Is there a way to do this with hibernate? Is there some annotation that would mimic @ManyToMany(twoPrimaryKeys = false) annotation?
|
|