小编Tia*_*nso的帖子

从 java 8 迁移到 java 11 时出现 JPA/eclipselink 错误

我正在尝试将我的 Thorntail 应用程序从 java 8 迁移到 java 11,但我遇到了实体关系问题。使用的映射在 java 8 上工作正常,但在 java 11 中我有这个错误:

2019-07-03 15:48:12,713 ERROR [stderr] (main) Exception Description: 
  Predeployment of PersistenceUnit [p-unit] failed.

2019-07-03 15:48:12,713 ERROR [stderr] (main) Internal Exception: 
  Exception [EclipseLink-7250] (Eclipse Persistence Services - 
   2.7.3.v20180807-4be1041): 
    org.eclipse.persistence.exceptions.ValidationException

2019-07-03 15:48:12,713 ERROR [stderr] (main) Exception Description: 
  [class com.mytest.data.specific.entities.Table3] uses a non-entity 
   [class com.mytest.data.specific.entities.Table2] as target entity 
     in the relationship attribute [field table2].
Run Code Online (Sandbox Code Playgroud)

我的实体映射是这样的:

2019-07-03 15:48:12,713 ERROR [stderr] (main) Exception Description: 
  Predeployment of PersistenceUnit [p-unit] failed.

2019-07-03 15:48:12,713 ERROR …
Run Code Online (Sandbox Code Playgroud)

jpa eclipselink java-8 java-11 thorntail

5
推荐指数
1
解决办法
640
查看次数

标签 统计

eclipselink ×1

java-11 ×1

java-8 ×1

jpa ×1

thorntail ×1