2023-09-21 10:55:29 +02:00

18 lines
523 B
Java

package tech.ailef.dbadmin.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation marks a method as a "virtual" whose value is computed by
* using the method itself rather than retrieving it like a physical column
* from the database.
*
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ComputedColumn {
public String name() default "";
}