0

我们有一个带有 JPA eclipselink 2.3 的 Web 应用程序。

我们要启用延迟加载,这需要我们启用编织。编织过程运行良好,只是在我们运行页面时会导致一些错误。

错误如下:

Exception [EclipseLink-0] (Eclipse Persistence Services - 1.2.0.v20091016-r5565): 
org.eclipse.persistence.exceptions.IntegrityException Descriptor Exceptions: --------------------------------------------------------- 
Exception [EclipseLink-60] (Eclipse Persistence Services - 1.2.0.v20091016-r5565): org.eclipse.persistence.exceptions.DescriptorException Exception Description: 
The method [_persistence_setothrSrceOfSlsElmntLinkId_vh] or [_persistence_getothrSrceOfSlsElmntLinkId_vh] is not defined in the object [avon.maps.entities.SrceOfSlsElmnt]. 
Internal Exception: java.lang.NoSuchMethodException: avon.maps.entities.SrceOfSlsElmnt._persistence_getothrSrceOfSlsElmntLinkId_vh() Mapping: 
org.eclipse.persistence.mappings.OneToOneMapping[othrSrceOfSlsElmntLinkId] Descriptor: RelationalDescriptor(avon.maps.entities.SrceOfSlsElmnt --> [DatabaseTable(SRCE_OF_SLS_ELMNT)]

我们的 persistence.xml 包含以下行:

<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
4

0 回答 0