Initial project
This commit is contained in:
21
src/main/java/com/imyeyu/spring/annotation/table/Column.java
Normal file
21
src/main/java/com/imyeyu/spring/annotation/table/Column.java
Normal file
@@ -0,0 +1,21 @@
|
||||
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 {
|
||||
|
||||
String value();
|
||||
}
|
||||
Reference in New Issue
Block a user