public interface RemovableData extends IdentifiableData
For example, all methods generating lists of items, will by default not include items that are flagged as removed.
A cleaning application is usually run at regular intervals to remove items that have been flagged as removed.
This interface defines Hibernate database mapping for the
removed
property to a database column with the same
name. If a subclass wants to map these properties to other columns,
it should override the isRemoved()
method and add a
Hibernate tag in the comment.
Reference implementation
private boolean removed; public boolean isRemoved() { return removed; } public void setRemoved(boolean removed) { this.removed = removed; }
Modifier and Type | Method and Description |
---|---|
boolean |
isRemoved()
Check if the removed flag is set for this item.
|
void |
setRemoved(boolean removed)
Set the removed flag for this item.
|
getId, getVersion
boolean isRemoved()
void setRemoved(boolean removed)
removed
- TRUE if the item should be flagged as removed,
FALSE otherwise