Annotation Type Lang


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @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

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.Class<? extends LanguageDriver> value
      Returns the LanguageDriver implementation type to use.