Package org.apache.ibatis.annotations
Annotation Interface Lang
The annotation that specify a
LanguageDriver
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
Modifier and TypeRequired ElementDescriptionClass<? extends LanguageDriver>
Returns theLanguageDriver
implementation type to use.
-
Element Details
-
value
Class<? extends LanguageDriver> valueReturns theLanguageDriver
implementation type to use.- Returns:
- the
LanguageDriver
implementation type
-