Java JPA With EclipseLink 2.3延迟加载编织方法未找到异常
我们有一个带有JPA eclipselink 2.3的web应用程序 我们希望启用延迟加载,这要求我们启用编织。编织过程运行良好,只是在运行页面时会导致一些错误 错误如下:Java JPA With EclipseLink 2.3延迟加载编织方法未找到异常,java,jpa,eclipselink,compile-time-weaving,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-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">
Persistence包含以下行:错误表示编织没有正常运行,或者没有在应该运行的时候运行。你是如何配置编织的?请参阅以获取信息。谢谢Chris,事实证明我正确编织了类,但没有在我的war文件中使用编织的类,duh!谢谢你的帮助!