Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
package org.hibernate.annotations;
2
 
3
import static java.lang.annotation.ElementType.TYPE;
4
import static java.lang.annotation.ElementType.FIELD;
5
import static java.lang.annotation.ElementType.METHOD;
6
import java.lang.annotation.Retention;
7
import static java.lang.annotation.RetentionPolicy.RUNTIME;
8
import java.lang.annotation.Target;
9
 
10
/**
11
 * Loader Annotation for overwriting Hibernate default FIND method
12
 *
13
 * @author László Benke
14
 */
15
@Target( {TYPE, FIELD, METHOD} )
16
@Retention( RUNTIME )
17
public @interface Loader {
18
        /**
19
         * namedQuery to use for loading
20
         */
21
        String namedQuery() default "";
22
}