27 lines
600 B
Java
27 lines
600 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.FIELD)
|
|
public @interface Column {
|
|
|
|
/**
|
|
* 指定列名
|
|
*
|
|
* @return 列名
|
|
*/
|
|
String value();
|
|
}
|