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
 * SqlInsert Annotation for overwriting Hibernate default INSERT INTO method
13
 *
14
 * @author László Benke
15
 */
16
@Target( {TYPE, FIELD, METHOD} )
17
@Retention( RUNTIME )
18
public @interface SQLInsert {
19
        /**
20
         * Procedure name or INSERT STATEMENT
21
         */
22
        String sql();
23
 
24
        /**
25
         * Is the statement using stored procedure or not
26
         */
27
        boolean callable() default false;
28
 
29
        /**
30
         * For persistence operation what style of determining results (success/failure) is to be used.
31
         */
32
        ResultCheckStyle check() default ResultCheckStyle.NONE;
33
}