@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @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
.
Modifier and Type | Optional Element and Description |
---|---|
SoftDeletable.Type |
type
Returns The soft deletable type.
|
public abstract SoftDeletable.Type type
SoftDeletable.Type.DELETED
.Copyright © 2015–2021 OmniFaces. All rights reserved.