Hi. I have a problem. I have a ManyToMany
Code:
@Entity
public class TaxonObjects extends AbstractClannObject{
private String tag;
@ManyToMany(fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REMOVE})
@JoinTable(name = "TaxonConnect", joinColumns = {
@JoinColumn(name = "taxonObjectsId", nullable = false, updatable = false) },
inverseJoinColumns = { @JoinColumn(name = "taxonId",
nullable = false, updatable = false) })
private Set<Taxon>listTaxon;
Code:
@Entity
public class Taxon extends AbstractClannObject {
private String settore;
ManyToMany(fetch = FetchType.EAGER,mappedBy="listTaxon")
private Set<TaxonObjects> listTaxonObjects;
I passed the tag in the removeFuction and i want delete the association in TaxonConnect that exists between tag in TaxonObject and sector in Taxon.
How can it be done?
Thanks