
com.lindzh.mybatis.generator.annotation.Table Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mybatis-generator Show documentation
Show all versions of mybatis-generator Show documentation
MybatisGenerator is a xml ,sql and dao generator from java beans.
The newest version!
package com.lindzh.mybatis.generator.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 生成表
* @author lindezhi
* 2015年11月14日 上午10:20:57
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Table {
/**
* 表名称
* @return
*/
String name();
/**
* 是否自动生primary key
* @return
*/
boolean autoGeneratePrimaryKey() default true;
/**
* 数据源选择 ,方便多数据源配置
* @return
*/
String datasource() default "default";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy