Package org.apache.ibatis.annotations
Annotation Type Lang
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Lang
The annotation that specify aLanguageDriver
to use.
How to use:public interface UserMapper { @Lang(MyXMLLanguageDriver.class) @Select("SELECT id, name FROM users WHERE id = #{id}") User selectById(int id); }
- Author:
- Clinton Begin
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends LanguageDriver>
value
Returns theLanguageDriver
implementation type to use.
-
-
-
Element Detail
-
value
java.lang.Class<? extends LanguageDriver> value
Returns theLanguageDriver
implementation type to use.- Returns:
- the
LanguageDriver
implementation type
-
-