com.mybatis.jpa.annotation.StatementDefinition Maven / Gradle / Ivy
The newest version!
package com.mybatis.jpa.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 赋予method解析权,当前方法将被解析,并在Mybatis Statement中注册
*
* its means that you could not use mapper.xml or Mybatis annotation to build
* the sql or resultMap,it will be resolved and auto build according to your
* method sign.so,please definition method with prescribed as follows.
*
* @attation it can only resolve single condition,the condition column must use
* fieldName(except primaryKey,because primaryKey will be adapted to
* fieldName),and the operate with condition {@see OperateEnum}
*
* @attation when use this annotation in one method,you should ensure that the
* class(mapper interface) is annotation with
* {@MapperDefinition},otherwise this method can not be resolved.
*
* @author svili
*
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface StatementDefinition {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy