What cascade type should I use for a hibernate entity attribute whose fields can't be modified, but that can be reassigned to a new instance?
Example
@ManyToOne(cascade = { CascadeType.REFRESH })
@JoinColumn(name = "ADDRESS_ID", nullable = true)
private Address address;
We can assign a new address to the current object, but we can't modify the fields of an existing address since the Addresses should be immutable in the database. We should be able to create new addresses along with the entity but not to delete them. What CascadeType should we use?