| 123456789101112131415161718192021222324252627282930313233 |
- package com.kym.jdbc.annotations;
- import java.lang.annotation.Documented;
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Inherited;
- import java.lang.annotation.Retention;
- import java.lang.annotation.RetentionPolicy;
- import java.lang.annotation.Target;
- /**
- * 实体类映射数据表注解
- * @author asynll
- */
- @Target({ElementType.TYPE})
- @Retention(RetentionPolicy.RUNTIME)
- @Documented
- @Inherited
- public @interface Entity{
- /**
- * 表名注释
- */
- String comment() default "";
- /**
- * 映射的表名,强制指定后忽略默认的构造表名方法
- */
- String tbName() default "";
- /**
- * 关联实体类对象
- */
- Class<?> clz() default void.class;
- }
|