Annotation Type SQLUpdate


  • @Target({TYPE,FIELD,METHOD})
    @Retention(RUNTIME)
    public @interface SQLUpdate
    Custom SQL statement for update of an entity/collection.
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String sql
      Procedure name or SQL UPDATE 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.
    • Element Detail

      • sql

        java.lang.String sql
        Procedure name or SQL UPDATE 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