【问题标题】:Seed Stack i18n AddOn Issue for language translation用于语言翻译的种子堆栈 i18n 插件问题
【发布时间】:2019-11-12 13:41:30
【问题描述】:

地狱队,

使用 LocalizationService.localize(key, value) 进行键翻译时,会出现以下异常,

  1. javax.persistence.PersistenceException:org.hibernate.exception.SQLGrammarException:无法提取 ResultSet 在 org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:147)

  2. org.hibernate.exception.SQLGrammarException:无法提取 ResultSet 在 org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:63)

  3. java.sql.SQLSyntaxErrorException:“字段列表”中的未知列“translatio1_.Key_ID” 在 com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)

谢谢

【问题讨论】:

    标签: internationalization seedstack


    【解决方案1】:

    作为插件源代码的一部分提供的 DDL 脚本不匹配:mysql 和 Oracle 的脚本已过时。 hsql 脚本中提供了正确的结构:表 SEED_I18N_KEY_TRANS 中的 TRANS_ID_FK 列现在应命名为 KEY_ID。

    已在 Github 上开通ticket 进行更正跟进。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-29
      • 2021-04-21
      • 1970-01-01
      相关资源
      最近更新 更多