用于语言翻译的Seed Stack i18n附加组件问题

时间:2019-11-12 13:41:30

标签: internationalization seedstack

地狱队,

使用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)

谢谢

1 个答案:

答案 0 :(得分:0)

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

ticket已在Github上打开以进行更正。