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.TYPE;
5
import static java.lang.annotation.ElementType.FIELD;
6
import static java.lang.annotation.ElementType.METHOD;
7
import java.lang.annotation.Retention;
8
import static java.lang.annotation.RetentionPolicy.RUNTIME;
9
import java.lang.annotation.Target;
10
 
11
/**
12
 * SqlUpdate Annotation for overwriting Hibernate default UPDATE method
13
 *
14
 * @author László Benke
15
 */
16
@Target( {TYPE, FIELD, METHOD} )
17
@Retention( RUNTIME )
18
public @interface SQLUpdate {
19
 
20
        /**
21
         * Procedure name or UPDATE 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
}