Annotation Type 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
    • Optional Element Summary

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