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 06:26 Go to next message
J F is currently offline J F
Messages: 242
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 07: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 13:49 Go to previous message
James Sutherland is currently offline James Sutherland
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: Fri Aug 01 10:12:29 EDT 2014

Powered by FUDForum. Page generated in 0.01606 seconds