
com.github.chengyuxing.sql.annotation.Function Maven / Gradle / Ivy
package com.github.chengyuxing.sql.annotation;
import org.intellij.lang.annotations.Language;
import java.lang.annotation.*;
/**
* Function name e.g. {@code {call my_func(:num)}} .
* Method annotated with {@code @Function} means the method no need to mapping
* with sql fragment, {@link XQL @XQL} will be not working.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
public @interface Function {
/**
* Function name.
*
* @return Function name
*/
@Language("SQL")
String value();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy