Hello,
It is posible to have many-to-many relation mapping when the two foreign keys compose unique key, not primary key in relation table. It is posible to add in mapping file other information about relation (other important columns and a primary key - a surogate key). I've already some tables for many-to-many relation with primary key a surogate key, not composed by the the foreign keys...
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt: