All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.grosner.dbflow.annotation.ModelView Maven / Gradle / Ivy

package com.grosner.dbflow.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Author: andrewgrosner
 * Description: Marks a class as being an SQL VIEW definition. It must extend BaseModelView.
 */
@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
public @interface ModelView {

    /**
     * @return The fully qualified query that is used for this View
     */
    String query();

    /**
     * @return The name of this view
     */
    String name() default "";

    /**
     * @return The name of the database this corresponds to. By default if one DB is defined, no need to specify the name.
     */
    String databaseName() default "";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy