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.FIELD;
4
import static java.lang.annotation.ElementType.METHOD;
5
import java.lang.annotation.Retention;
6
import static java.lang.annotation.RetentionPolicy.RUNTIME;
7
import java.lang.annotation.Target;
8
 
9
/**
10
 * Formula. To be used as a replacement for @Column in most places
11
 * The formula has to be a valid SQL fragment
12
 *
13
 * @author Emmanuel Bernard
14
 */
15
@Target({METHOD, FIELD})
16
@Retention(RUNTIME)
17
public @interface Formula {
18
        String value();
19
}