Instead of deleting the record, our client would like to mark the record as deleted. We use JPA2 / Hibernate. I would like to do something like the following:
@Entity @Table(name="TABLE") @ActionOverride(action="delete", with="activeFlag = false") public class Table { @Column(name="ACTIVE_FLAG") boolean activeFlag;
I have done this in the past, but I cannot find the correct syntax and annotation.
source share