JPA使用EclipseLink 2.3延迟加载编织方法未找到例外

时间:2014-03-10 09:43:09

标签: java jpa eclipselink compile-time-weaving

我们有一个带有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">

0 个答案:

没有答案