mirror of
https://github.com/wahyd4/Martian.git
synced 2026-08-09 05:16:21 +10:00
29 lines
448 B
Java
29 lines
448 B
Java
package com.mars.jdbc.annotation;
|
|
|
|
import java.lang.annotation.*;
|
|
import java.util.Map;
|
|
|
|
@Target(ElementType.METHOD)
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
@Documented
|
|
public @interface MarsSelect {
|
|
|
|
/**
|
|
* sql语句
|
|
* @return
|
|
*/
|
|
String sql();
|
|
|
|
/**
|
|
* 返回类型
|
|
* @return
|
|
*/
|
|
Class<?> resultType() default Map.class;
|
|
|
|
/**
|
|
* 是否分页
|
|
* @return
|
|
*/
|
|
boolean page() default false;
|
|
}
|