cn.vonce.sql.annotation.SqlTable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vonce-sqlbean-core Show documentation
Show all versions of vonce-sqlbean-core Show documentation
This is the core project of Sqlbean.
package cn.vonce.sql.annotation;
import java.lang.annotation.*;
/**
* 标识Bean 实体类对应的表名
*
* @author Jovi
* @version 1.0
* @email [email protected]
* @date 2018年2月8日下午2:54:20
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
public @interface SqlTable {
/**
* 如果表不存在则自动创建表
*
* @return
*/
boolean autoCreate() default true;
/**
* 生成实体类生成对应表的字段常量
*
* @return
*/
boolean generate() default true;
/**
* 是否为视图
*
* @return
*/
boolean isView() default false;
/**
* 表名
*
* @return
*/
String value();
/**
* 表别名
*
* @return
*/
String alias() default "";
/**
* schema
*
* @return
*/
String schema() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy