Assuming I have the following table.
And my entity
for AUDITING purpose, hard delete is not encouraged.
thus, when deleting a record, the ITEM_STAUS changes to 2 (deleted).
and I have the following status code
0 - active
1 - inactive
2 - deleted
And my entity
@Entity
@Table(name="ITEM")
public class Item {
private Long itemId;
private String itemName;
private Integer itemStatus;
// getter and setter
}
for AUDITING purpose, hard delete is not encouraged.
thus, when deleting a record, the ITEM_STAUS changes to 2 (deleted).
and I have the following status code
0 - active
1 - inactive
2 - deleted

