package minejava.rex.persistence;

import minejava.reg.annotations.Target;
import minejava.reg.annotations.Retention;
import static minejava.reg.annotations.ElementType.FIELD;
import static minejava.reg.annotations.ElementType.METHOD;
import static minejava.reg.annotations.RetentionPolicy.RUNTIME;

@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface JoinColumn{

    String name() default "";

    String referencedColumnName() default "";

    boolean unique() default false;

    boolean nullable() default true;

    boolean insertable() default true;

    boolean updatable() default true;

    String columnDefinition() default "";

    String table() default "";
}
