Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: $
2
package org.hibernate.annotations;
3
 
4
import static java.lang.annotation.ElementType.FIELD;
5
import static java.lang.annotation.ElementType.METHOD;
6
import static java.lang.annotation.ElementType.TYPE;
7
 
8
import java.lang.annotation.Retention;
9
import java.lang.annotation.RetentionPolicy;
10
import java.lang.annotation.Target;
11
 
12
/**
13
 * SqlDelete Annotation for overwriting Hibernate default DELETE ALL method
14
 *
15
 * @author László Benke
16
 */
17
@Target( {TYPE, FIELD, METHOD} )
18
@Retention( RetentionPolicy.RUNTIME )
19
public @interface SQLDeleteAll {
20
        /**
21
         * Procedure name or DELETE STATEMENT
22
         */
23
        String sql();
24
 
25
        /**
26
         * Is the statement using stored procedure or not
27
         */
28
        boolean callable() default false;
29
 
30
        /**
31
         * For persistence operation what style of determining results (success/failure) is to be used.
32
         */
33
        ResultCheckStyle check() default ResultCheckStyle.NONE;
34
}