Ok the delete query disapear, but the data are not saved.
This is my new code :
Code:
...
@CollectionOfElements @JoinTable(name="dossier_document_join",joinColumns=@JoinColumn(name="file"))
private List<Document> documents;
...
@CollectionOfElements(fetch = FetchType.EAGER) @JoinTable(name="dossier_prota")
@Cascade(value = CascadeType.ALL)
private List<Signature> protagonistes;
...
This is the query when I save :
Code:
17:47:08,103 DEBUG SQL:111 - update Dossier set codeGestionnaire=?, dateMission=?, declarationSinistre=?, descriptifDommage=?, etatDossier=?, idCompatibilite=?, adresse=?, codePostal=?, ville=?, natureMission=?, numDarvaDest=?, numDarvaExp=?, numMission=?, numPolice=?, sinistre=?, typeLieu=?, OPTLOCK=?, wan=? where id=? and OPTLOCK=?
Hibernate: update Dossier set codeGestionnaire=?, dateMission=?, declarationSinistre=?, descriptifDommage=?, etatDossier=?, idCompatibilite=?, adresse=?, codePostal=?, ville=?, natureMission=?, numDarvaDest=?, numDarvaExp=?, numMission=?, numPolice=?, sinistre=?, typeLieu=?, OPTLOCK=?, wan=? where id=? and OPTLOCK=?
...