Annotation Interface AutoTrans


@Retention(RUNTIME) @Target(TYPE) public @interface AutoTrans
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
    字段集合
    命名空间
  • 可选元素概要

    可选元素
    修饰符和类型
    可选元素
    说明
    long
    globalCache 为true有效 缓存时间 到秒
    默认的别名
    boolean
    全局缓存
    boolean
    globalCache 为true有效 true 代表按照访问时间过期 false 按照插入时间过期
    int
    globalCache 为true有效 最大缓存多少个
    Class<? extends VO>
    关联的类 jpa dao/mbatis plus的时候mapper专用参数
    boolean
    已过时。
    boolean
    已过时。
  • 元素详细资料

    • namespace

      String namespace
      命名空间
      返回:
    • fields

      String[] fields
      字段集合
      返回:
    • useCache

      @Deprecated boolean useCache
      已过时。
      是否使用缓存翻译
      返回:
      默认为true 如果是false的话
      默认值:
      false
    • useRedis

      @Deprecated boolean useRedis
      已过时。
      是否使用redis存放缓存
      返回:
      默认false
      默认值:
      false
    • defaultAlias

      String defaultAlias
      默认的别名
      返回:
      默认值:
      ""
    • ref

      Class<? extends VO> ref
      关联的类 jpa dao/mbatis plus的时候mapper专用参数
      返回:
      默认值:
      org.dromara.core.trans.vo.VO.class
    • globalCache

      boolean globalCache
      全局缓存
      返回:
      默认值:
      false
    • isAccess

      boolean isAccess
      globalCache 为true有效 true 代表按照访问时间过期 false 按照插入时间过期
      返回:
      默认值:
      false
    • cacheSeconds

      long cacheSeconds
      globalCache 为true有效 缓存时间 到秒
      返回:
      默认值:
      10L
    • maxCache

      int maxCache
      globalCache 为true有效 最大缓存多少个
      返回:
      默认值:
      1000