27 lines
604 B
Java
27 lines
604 B
Java
package com.imyeyu.spring.annotation.table;
|
|
|
|
import com.imyeyu.spring.util.SQLProvider;
|
|
|
|
import java.lang.annotation.ElementType;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
import java.lang.annotation.Target;
|
|
|
|
/**
|
|
* 指定表名,在 {@link SQLProvider} 代理器中的方法无法简单将实体类名转为数据库表名时,使用此注解指定
|
|
*
|
|
* @author 夜雨
|
|
* @since 2025-01-29 09:53
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Target(ElementType.TYPE)
|
|
public @interface Table {
|
|
|
|
/**
|
|
* 指定表名
|
|
*
|
|
* @return 表名
|
|
*/
|
|
String value();
|
|
}
|