Annotation Interface SoftDeletable


@Target({METHOD,FIELD}) @Retention(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.

Author:
Sergey Kuntsel
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Defines the types of the soft delete column.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns The soft deletable type.