@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface UseStringTemplateSqlLocator
StringTemplateSqlLocator.findStringTemplateSql(Class, String)
method. If the SQL annotation (e.g. @SqlQuery) defines a value (e.g. @SqlQuery("hello")),
that value ("hello") will be used for the name parameter; if undefined, the name of the SQL
object method will be used:
@UseStringTemplateSqlLocator
interface Viccini {
@SqlUpdate
void doTheThing(long id); // => StringTemplateSqlLocator.findStringTemplateSql(Viccini.class, "doTheThing")
@SqlUpdate("thatOtherThing")
void doTheThing(String name); // => StringTemplateSqlLocator.findStringTemplateSql(Viccini.class, "thatOtherThing")
}
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends StatementRewriter> |
value |
public abstract Class<? extends StatementRewriter> value
Copyright © 2016. All rights reserved.