Package org.omnifaces.persistence.model
Annotation Type SoftDeletable
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface SoftDeletable
When put on a field of
BaseEntity, then the special methods ofBaseEntityServicewill 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 throwNonSoftDeletableEntityException.- Author:
- Sergey Kuntsel
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description SoftDeletable.TypetypeReturns The soft deletable type.
-
-
-
Element Detail
-
type
SoftDeletable.Type type
Returns The soft deletable type. Defaults toSoftDeletable.Type.DELETED.- Returns:
- The soft deletable type.
- Default:
- org.omnifaces.persistence.model.SoftDeletable.Type.DELETED
-
-