Collaborateur *-------------------RESSOURCE_PROJECT---------------* Project
In Ressource
Quote:
<set name="projetsAssignes" table="RESSOURCE_PROJET" cascade="none" >
<key column="refRessource" />
<many-to-many column="refProjet" class="Projet" />
</set>
and in Projet
Quote:
<set name="ressourcesDisponibles" table="RESSOURCE_PROJET"
cascade="none" inverse="true">
<key column="refProjet" />
<many-to-many column="refRessource" class="Ressource" />
</set>
so there are only two entities
When i delete a Project, I would like to delete the references in table RESSOURCE_PROJECT but not to delele the Ressource
because the lifecycle of a ressource is not linked to a project