Package org.omnifaces.persistence.model
Annotation Interface SoftDeletable
When put on a field of BaseEntity
, then the special methods of
BaseEntityService
will allow to soft-delete the entity and later
soft-undelete it. It will also allow to get all entities that are
soft-deleted and/or active in the data store. Calling those methods from a
service for an entity that doesn't have such column will throw will throw
NonSoftDeletableEntityException
.
- Author:
- Sergey Kuntsel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Defines the types of the soft delete column. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionReturns The soft deletable type.
-
Element Details
-
type
SoftDeletable.Type typeReturns The soft deletable type. Defaults toSoftDeletable.Type.DELETED
.- Returns:
- The soft deletable type.
- Default:
- DELETED
-