Commit a5944121 authored by yanzg's avatar yanzg

接口文档的支持

parent 3318939e
package com.yanzuoguang.dao;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 途比达列明映射
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface SqlFieldAnnotation {
/**
* Sql语句名称,当为空时,则为当前类
*
* @return
*/
String[] name() default {};
/**
* Sql语句列表,当table和sql都为空时,则根据当前注解 @TableAnnotation 生成对应类型的SQL语句
*
* @return
*/
String[] sql() default {};
/**
* 字段代码片段,关联到 {FIELD}
*
* @return
*/
String[] field() default {};
/**
* inner代码片段,关联到 {INNER}
*
* @return
*/
String[] inner() default {};
/**
* 条件代码片段,关联到 {INNER}
*
* @return
*/
String[] where() default {};
/**
* 统计代码片段,关联到 {GROUP}
*
* @return
*/
String[] group() default {};
/**
* 统计代码片段,关联到 {ORDER}
*
* @return
*/
String[] order() default {};
/**
* 统计代码片段,关联到 {LIMIT}
*
* @return
*/
String[] limit() default {};
/**
* 包含的代码片段
*
* @return
*/
String[] codes() default {};
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment