Annotation Type SoftDelete


  • @Target(TYPE)
    @Retention(RUNTIME)
    public @interface SoftDelete
    Extension annotation allowing for specifying a class as using soft delete, meaning that it will have a surrogate column in its table storing whether it is deleted (rather than deleting it).
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String column
      Name of the soft delete flag column in the table for this class.
      javax.jdo.annotations.Column[] columns
      The column making up the soft delete indicator.
      String indexed
      Whether the soft delete column is indexed.
    • Element Detail

      • column

        String column
        Name of the soft delete flag column in the table for this class.
        Returns:
        The soft delete column name
        Default:
        "DELETED"
      • columns

        javax.jdo.annotations.Column[] columns
        The column making up the soft delete indicator.
        Returns:
        the column making up the soft delete indicator.
        Default:
        {}
      • indexed

        String indexed
        Whether the soft delete column is indexed.
        Returns:
        whether the soft delete column is indexed
        Default:
        ""