Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Must static-weaving be set in the persistence.xml file if static weaving has been performed
Must static-weaving be set in the persistence.xml file if static weaving has been performed [message #757256] Thu, 17 November 2011 11:26 Go to next message
J F is currently offline J FFriend
Messages: 256
Registered: July 2009
Senior Member
In http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_(ELUG)#To_Configure_Static_Weaving_for_JPA_Entities it states in point 2.

"Configure your persistence.xml file with a eclipselink.weaving extension set to static, as this example shows:"

This is causing problems when running from an IDE.
Is it necessary to put this in, or does Eclipselink know that staticweaving has occurred without it?
If I do not put this in and run my tests outside the IDE everything works as normal, but is weaving being done?
What happens if weaving is done on already woven classes?

Thanks

[Updated on: Thu, 17 November 2011 12:32]

Report message to a moderator

Re: Must static-weaving be set in the persistence.xml file if static weaving has been performed [message #757810 is a reply to message #757256] Mon, 21 November 2011 18:49 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You should not need to set weaving to static on the latest release.

You should see if lazy and change tracking are enabled if you turn logging on.

Weaving will not re-weave already woven classes.

You can check if your classes implement the PersistenceWeaved interfaces to check if they were weaved.


James : Wiki : Book : Blog : Twitter
Previous Topic:Re: ID of referenced Entity is not updated with CascadeType.ALL
Next Topic:Title: NullPointerException in Query.setHint with join-fetch/batch
Goto Forum:
  


Current Time: Tue Apr 23 14:25:46 GMT 2024

Powered by FUDForum. Page generated in 0.02957 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top