I have two class, Campaign and Country. My country table has fixed data and should not be changed in program.
Campaign has many-to-one relation to Country. I do not want to have cascade update/delete on this relations. And there is no cascade set up on Campaign class. But it still update the country table. How could I disable that?
Here is part of my configuration:
in Campaign
@ManyToOne
@JoinColumn(name="countryId", referenceColName="countryId")
private Country country;
Inside Country class, there is no any configuration and properties related to Campaign.
Thanks a lot.


Reply With Quote