【问题标题】:Hibernate on migrating Corda nodes to Corda 4.3将 Corda 节点迁移到 Corda 4.3 时休眠
【发布时间】:2020-05-02 19:02:36
【问题描述】:

升级到 Corda Open Source 4.3 时,我在节点启动时遇到了这个错误。这是 Corda 要求的使用 Hibernate 5.4.3。

[ERROR] 2019-12-18T16:17:25,820Z [main] internal.NodeStartupLogging. - Exception during node startup: Could not create Hibernate configuration: 
The [com.foo.BarSchema$NotificationState] and [com.foo.v2.BarSchema$NotificationState] entities share the same JPA entity name: [BarSchema$NotificationState] which is not allowed! [errorCode=3elmpn, moreInformationAt=https://errors.corda.net/OS/4.3/3elmpn]
net.corda.nodeapi.internal.persistence.HibernateConfigException: Could not create Hibernate configuration: 
The [com.foo.BarSchema$NotificationState] and [com.foo.v2.BarSchema$NotificationState] entities share the same JPA entity name: [BarSchema$NotificationState] which is not allowed!

【问题讨论】:

    标签: hibernate corda


    【解决方案1】:

    这是由 Hibernate 中的一个已知问题引起的,如下所述:https://hibernate.atlassian.net/browse/HHH-13060

    按照 cmets 中的建议,设置实体名称注释可以解决异常。

    【讨论】:

      猜你喜欢
      • 2018-08-24
      • 1970-01-01
      • 1970-01-01
      • 2020-04-04
      • 1970-01-01
      • 2019-10-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多