Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.2
Hi, I have a problem with the relation many-to-many.
I want to mapping a many-to-many relation between 2 table with an extra column.
there's be a table PERSON (person_id,name,age), a table work(work_id,title) and a relation many-to-many that is map in a table person_work with column work_id,person_id and an extra column pubblication date (there's be many pubblication date of a work,for example a book, of a person).
I now that the simple many-to-many relation is mapping as follow:
<set name="work" table="Person_Work">
<key column="id" />
<many-to-many column="id_work" class="lemure.Work" />
</set>
How can I inser an extra column in the tables Person_Work???