我正在尝试将我的 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)