Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:3.2.3.ga
I am having a ManyToMany table and I have customised the table name and the column names using the @JoinTable annoation.
We have a custom replication component at database level, and we use primary keys to replicate rows(primary keys are used to determine whether they are to be inserted or updated in target database). However our schema, has many-to-many mapping which as such have a composite primary key and do not have an "id" column.
Is it possible to include an id column in the ManyToMany Table and with generated key values.
One option would be to refactor the domain model to not have many to many and introduce a new entity. But I would like to know if there are better solutions?