Annotation Type SQLDeleteAll


  • @Target({TYPE,FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface SQLDeleteAll
    Specifies a custom SQL DML statement to be used in place of the default SQL generated by Hibernate when an entire collection is deleted from the database.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String sql
      Procedure name or SQL DELETE statement.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean callable
      Is the statement callable (aka a CallableStatement)?
      ResultCheckStyle check
      For persistence operation what style of determining results (success/failure) is to be used.
      String table
      The name of the table in the case of an entity with secondary tables, defaults to the primary table.
    • Element Detail

      • sql

        String sql
        Procedure name or SQL DELETE statement.
      • callable

        boolean callable
        Is the statement callable (aka a CallableStatement)?
        Default:
        false
      • check

        ResultCheckStyle check
        For persistence operation what style of determining results (success/failure) is to be used.
        Default:
        org.hibernate.annotations.ResultCheckStyle.NONE
      • table

        String table
        The name of the table in the case of an entity with secondary tables, defaults to the primary table.
        Returns:
        the name of the table
        Since:
        6.2
        Default:
        ""